From: Mikael Magnusson Date: Sun, 5 Jul 2009 15:07:18 +0000 (+0200) Subject: Listen to key press events on the support window X-Git-Tag: mikabox-3.4.7.2~8 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=1fa20febe1e2b2ea6b9034b205dbfeca3375dc30;p=mikachu%2Fopenbox.git Listen to key press events on the support window This allows us to make binds that are only active when no clients are focused with the grab=no option. However, this will mean that these binds will also be launched if the keyboard is otherwise grabbed, for example during alt-tab or when showing a menu. --- diff --git a/openbox/screen.c b/openbox/screen.c index 7eda7c37..bb26a242 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -163,7 +163,7 @@ gboolean screen_annex(void) /* create the netwm support window */ attrib.override_redirect = TRUE; - attrib.event_mask = PropertyChangeMask; + attrib.event_mask = PropertyChangeMask | KeyPressMask | KeyReleaseMask; screen_support_win = XCreateWindow(obt_display, obt_root(ob_screen), -100, -100, 1, 1, 0, CopyFromParent, InputOutput,