GNOME Bugzilla – Bug 670096
Use XTest to send out custom bindings
Last modified: 2012-02-16 11:56:12 UTC
Not working yet...
Created attachment 207584 [details] [review] wacom: Add XSendEvent() usage for custom actions
When using InputFocus as the destination window, we get in xev: KeyPress event, serial 32, synthetic YES, window 0x161, root 0x161, subw 0x10584f8, time 52402051, (60,188), root:(60,188), state 0x0, keycode 24 (keysym 0x71, q), same_screen YES, XLookupString gives 1 bytes: (71) "q" XmbLookupString gives 1 bytes: (71) "q" XFilterEvent returns: False KeyRelease event, serial 32, synthetic YES, window 0x161, root 0x161, subw 0x10584f8, time 52402150, (60,188), root:(60,188), state 0x0, keycode 24 (keysym 0x71, q), same_screen YES, XLookupString gives 1 bytes: (71) "q" XFilterEvent returns: False Which means that the target window would have been the root window.
Comment on attachment 207584 [details] [review] wacom: Add XSendEvent() usage for custom actions XSendEvent() is only usable if you know for certain the target window, which we cannot, as the window that wants to receive the event might be the parent of the window with input focus. And you wouldn't know that.
commit fa5958fd261ef2c97d5722fa70cfcd33eb7be0c0 Author: Bastien Nocera <hadess@hadess.net> Date: Tue Feb 14 20:11:06 2012 +0000 wacom: Use XTest to send out custom bindings https://bugzilla.gnome.org/show_bug.cgi?id=670096