all repos — openbox @ d50f4917169e8d354f62dd639afde0efe807760c

openbox fork - make it a bit more like ryudo

this might fix focusLast which was previously borken when closing a window and the pointer was on it and then going onto another from the close. er, yeah.
Mikael Magnusson mikachu@comhem.se
commit

d50f4917169e8d354f62dd639afde0efe807760c

parent

dd7c6ad734e88e6f2ad053f090bd5b04c5692fb4

1 files changed, 7 insertions(+), 0 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -415,6 +415,10 @@

keyboard_grab_for_client(self, FALSE); mouse_grab_for_client(self, FALSE); + /* potentially fix focusLast */ + if (config_focus_last) + grab_pointer(TRUE, OB_CURSOR_NONE); + /* remove the window from our save set */ XChangeSaveSet(ob_display, self->window, SetModeDelete);

@@ -518,6 +522,9 @@ g_free(self);

/* update the list hints */ client_set_list(); + + if (config_focus_last) + grab_pointer(FALSE, OB_CURSOR_NONE); } static void client_urgent_notify(ObClient *self)