Don't move focus away from a window if it was focused and it didnt hide when switching desktops
This commit is contained in:
parent
d3347e8be3
commit
24f6b59fe3
1 changed files with 1 additions and 2 deletions
|
@ -717,8 +717,7 @@ void screen_set_desktop(guint num, gboolean dofocus)
|
|||
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) {
|
||||
if (client_hide(c) && 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
|
||||
|
|
Loading…
Reference in a new issue