X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fscreen.c;h=b0fa17dd45e2fcd09f87f4669a8a1013eb26240e;hb=9f74f1e244d90a60aa33e5921a66bb22e3faf073;hp=3e27903fba2c95c70bf994e90cfa5c53a2994e7e;hpb=d7d54e9b892ce8ce23994720d34aa29fd47b8fd8;p=chaz%2Fopenbox diff --git a/openbox/screen.c b/openbox/screen.c index 3e27903f..b0fa17dd 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -727,6 +727,15 @@ void screen_set_desktop(guint num, gboolean dofocus) 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); + } } }