all repos — openbox @ 9f74f1e244d90a60aa33e5921a66bb22e3faf073

openbox fork - make it a bit more like ryudo

When moving focus across desktops, make sure Openbox doesn't think that a window which is no longer visible is still focused.
Dana Jansens danakj@orodu.net
commit

9f74f1e244d90a60aa33e5921a66bb22e3faf073

parent

d7d54e9b892ce8ce23994720d34aa29fd47b8fd8

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

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

@@ -727,6 +727,15 @@ for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) {

if (WINDOW_IS_CLIENT(it->data)) { ObClient *c = it->data; client_hide(c); + if (c == focus_client) { + /* c was focused and we didn't do fallback clearly so make sure + openbox doesnt still consider the window focused. + this happens when using NextWindow with allDesktops, since + it doesnt want to move focus on desktop change, but the + focus is not going to stay with the current window, which + has now disappeared */ + focus_set_client(NULL); + } } }