Package: g15daemon
Version: 1.9.5.3-8
Severity: normal

The mentioned patch does not apply against 1.9.5.3-8. The attached patch
does apply and works for me (so far).

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages g15daemon depends on:
ii  libc6                   2.11.2-1         Embedded GNU C Library: Shared lib
ii  libfreetype6            2.3.11-1         FreeType 2 font engine, shared lib
ii  libg15-1                1.2.7-2          Library for interfacing with the L
ii  libg15daemon-client1    1.9.5.3-8        Development packages for libg15dae
ii  libg15render1           1.3.0~svn316-2.1 Library for interfacing with the L
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages g15daemon recommends:
ii  xkb-data                      1.8-1      X Keyboard Extension (XKB) configu

g15daemon suggests no packages.

-- no debconf information
--- g15daemon-1.9.5.3.orig/plugins/g15_plugin_uinput.c	2008-01-24 13:51:07.000000000 +0100
+++ g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c	2010-06-27 22:18:40.000000000 +0200
@@ -125,6 +125,13 @@
     event.value = G15KEY_DOWN;
     
     write (uinp_fd, &event, sizeof(event));
+
+    /* Need to write sync event */
+    memset(&event, 0, sizeof(event));
+    event.type = EV_SYN;
+    event.code = SYN_REPORT;
+    event.value = 0;
+    write(uinp_fd, &event, sizeof(event));
 }
 
 static void g15_uinput_keyup(unsigned char code)
@@ -137,6 +144,13 @@
     event.value = G15KEY_UP;
     
     write (uinp_fd, &event, sizeof(event));
+
+    /* Need to write sync event */
+    memset(&event, 0, sizeof(event));
+    event.type = EV_SYN;
+    event.code = SYN_REPORT;
+    event.value = 0;
+    write(uinp_fd, &event, sizeof(event));
 }
 
     void (*keyup)(unsigned char code) = &g15_uinput_keyup;

Reply via email to