From 1fa20febe1e2b2ea6b9034b205dbfeca3375dc30 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 5 Jul 2009 17:07:18 +0200 Subject: [PATCH] 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. --- openbox/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.34.1