5
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2024-12-22 13:34:06 +03:00

test if keysym is zero

This commit is contained in:
Dietmar Maurer 2013-10-11 14:11:05 +02:00
parent 55cfb9f86a
commit 0f8e254951

View File

@ -1502,11 +1502,16 @@ my_kbd_push_key(SpiceKbdInstance *sin, uint8_t frag)
}
static void
my_kbd_push_x11_keysym(SpiceKbdInstance *sin, uint32_t keysym, uint32_t flags)
my_kbd_push_x11_keysym(SpiceKbdInstance *sin, uint32_t keysym, uint32_t flags,
uint8_t code_len, uint8_t *code)
{
spiceTerm *vt = SPICE_CONTAINEROF(sin, spiceTerm, keyboard_sin);
spiceterm_push_keysym(vt, keysym, flags);
DPRINTF(1, "flags=%d keySym=%08x code_len=%d", flags, keysym, code_len);
if (keysym) {
spiceterm_push_keysym(vt, keysym, flags);
}
return;
}