From 4f9ec4cbdb42b7cbed9b5ac7cc9cd8746aea0798 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 30 Dec 2004 15:37:30 +0000 Subject: [PATCH] grab the mouse buttons and keyboards keys on clients before showing them to avoid the situation where a grabbed key goes to a client without being seen by openbox, hopefully has no side effects but probably does --- openbox/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openbox/client.c b/openbox/client.c index f5ca0005..4e314602 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -358,6 +358,9 @@ void client_manage(Window window) client_move(self, x, y); } + keyboard_grab_for_client(self, TRUE); + mouse_grab_for_client(self, TRUE); + client_showhide(self); /* use client_focus instead of client_activate cuz client_activate does @@ -392,9 +395,6 @@ void client_manage(Window window) /* update the list hints */ client_set_list(); - keyboard_grab_for_client(self, TRUE); - mouse_grab_for_client(self, TRUE); - ob_debug("Managed window 0x%lx (%s)\n", window, self->class); } -- 2.45.2