gtk inline preedit
This commit is contained in:
6
srv.c
6
srv.c
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user