summaryrefslogtreecommitdiffstats
path: root/misc/g15daemon/g15daemon-1.9.5.3-uinput.patch
diff options
context:
space:
mode:
author Alan Alberghini <414N@slacky.it>2011-09-07 23:15:17 -0400
committer Niels Horn <niels.horn@slackbuilds.org>2011-09-21 19:48:31 -0300
commit5956ee581d602e2cadcc7d24fb7d9958040480d4 (patch)
tree565e4df6d456034a0c671fb3ea48b39175dfa691 /misc/g15daemon/g15daemon-1.9.5.3-uinput.patch
parentf640bfb8573e7cf161d8f1ac0a368cadc81eb3e5 (diff)
downloadslackbuilds-5956ee581d602e2cadcc7d24fb7d9958040480d4.tar.gz
slackbuilds-5956ee581d602e2cadcc7d24fb7d9958040480d4.tar.xz
misc/g15daemon: Patch to fix Gn keys and suspend fixes.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'misc/g15daemon/g15daemon-1.9.5.3-uinput.patch')
-rw-r--r--misc/g15daemon/g15daemon-1.9.5.3-uinput.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/misc/g15daemon/g15daemon-1.9.5.3-uinput.patch b/misc/g15daemon/g15daemon-1.9.5.3-uinput.patch
new file mode 100644
index 0000000000..f91843281c
--- /dev/null
+++ b/misc/g15daemon/g15daemon-1.9.5.3-uinput.patch
@@ -0,0 +1,35 @@
+Index: g15daemon-1.9.5.3/g15daemon/g15_plugin_uinput.c
+===================================================================
+--- g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c
++++ g15daemon-1.9.5.3/plugins/g15_plugin_uinput.c
+@@ -125,6 +125,14 @@
+ 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 +145,14 @@
+ 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;
+