summaryrefslogtreecommitdiff
path: root/packages/keylaunch/files/unbreak-keyevents.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-11-27 10:50:47 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-11-27 10:50:47 +0000
commitcd218bdd24c1df03d7dfe3b8b6c939b5fb4af640 (patch)
tree2de0377be5e023085f13c11e87d9ca223dc542b4 /packages/keylaunch/files/unbreak-keyevents.patch
parent9b34dcde2a80218d107711d403fcfb5d8a1d62f7 (diff)
parent37dd0368bfdbb8b3680b8158d6e4d7bef646ad7f (diff)
merge of '2ea9f4ae40e1a9b07744e81b924d464d9e450aba'
and 'be33ed116b217c668a13a0dae151271036541f73'
Diffstat (limited to 'packages/keylaunch/files/unbreak-keyevents.patch')
-rw-r--r--packages/keylaunch/files/unbreak-keyevents.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/keylaunch/files/unbreak-keyevents.patch b/packages/keylaunch/files/unbreak-keyevents.patch
new file mode 100644
index 0000000000..0a2d58b16a
--- /dev/null
+++ b/packages/keylaunch/files/unbreak-keyevents.patch
@@ -0,0 +1,22 @@
+# HG changeset patch
+# User "Paul Sokolovsky <pfalcon@users.sourceforge.net>"
+# Date 1196027570 -7200
+# Node ID 282176e5c55dba673756b4707716f06a5c8b37e2
+# Parent 833c989472a7987681ea3b8cbd6f9eb77293177a
+We of course still want to receive key events even after subscribing to
+property events. This fixes when keylaunch doesn't receive forwarded
+power buttons events from gpe-login --autolock in its locked state.
+In plain words: now power button works with autolock screen.
+
+diff -r 833c989472a7 -r 282176e5c55d keylaunch.c
+--- a/keylaunch.c Sun Nov 25 22:04:29 2007 +0200
++++ b/keylaunch.c Sun Nov 25 23:52:50 2007 +0200
+@@ -682,7 +682,7 @@ main (int argc, char *argv[])
+ {
+ initialize (argc, argv);
+
+- XSelectInput (dpy, DefaultRootWindow (dpy), PropertyChangeMask);
++ XSelectInput (dpy, DefaultRootWindow (dpy), PropertyChangeMask | KeyPressMask | KeyReleaseMask);
+ gpe_launch_monitor_display (dpy);
+
+ signal (SIGCHLD, SIG_IGN);