gtk inline preedit

This commit is contained in:
2026-05-28 18:50:42 +09:00
parent b842c724e2
commit 293313652f
2 changed files with 44 additions and 7 deletions

6
srv.c
View File

@@ -4,14 +4,14 @@
static char adir[40];
static void
sendkey(int fd, u32int ks, u32int mod)
sendkey(int fd, u32int ks, u32int mod, int want)
{
Keyreq kr;
kr.fd = fd;
kr.ks = ks;
kr.mod = mod;
kr.want = 0;
kr.want = want;
chansend(keyc, &kr);
}
@@ -24,7 +24,7 @@ clientthread(void *arg)
fd = (int)(uintptr)arg;
threadsetname("client %d", fd);
while(read(fd, req, 4) == 4)
sendkey(fd, req[2] | (req[3] << 8), req[1]);
sendkey(fd, req[2] | (req[3] << 8), req[1], req[0]);
close(fd);
}