stop listening to events on clients that are being unmanaged before generating new events
Dana Jansens danakj@orodu.net
1 files changed,
4 insertions(+),
3 deletions(-)
jump to
M
openbox/client.c
→
openbox/client.c
@@ -506,6 +506,10 @@ self->title ? self->title : "");
g_assert(self != NULL); + /* we dont want events no more. do this before hiding the frame so we + don't generate more events */ + XSelectInput(ob_display, self->window, NoEventMask); + frame_hide(self->frame); /* sync to send the hide to the server quickly, and to get back the enter events */@@ -523,9 +527,6 @@ mouse_grab_for_client(self, FALSE);
/* remove the window from our save set */ XChangeSaveSet(ob_display, self->window, SetModeDelete); - - /* we dont want events no more */ - XSelectInput(ob_display, self->window, NoEventMask); /* update the focus lists */ focus_order_remove(self);