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-Url: http://git.openbox.org/?a=commitdiff_plain;h=e6aeb36b024692621dc3ae1f3b023051c46988ef;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 97a17646..24139b5b 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -169,7 +169,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,