diff options
| author | Dana Jansens <danakj@orodu.net> | 2009-12-17 15:40:25 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2009-12-17 15:40:25 -0500 |
| commit | 24f6b59fe36e06d06bd1139a99e08cb6e06d6682 (patch) | |
| tree | 6c876abd810ad8d6665ecc6b8d02a0fb92c2b7cb /openbox/screen.c | |
| parent | d3347e8be3753b7a466353aece04a25992018c9a (diff) | |
Don't move focus away from a window if it was focused and it didnt hide when switching desktops
Diffstat (limited to 'openbox/screen.c')
| -rw-r--r-- | openbox/screen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index 03e4efea..76ad1f27 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -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 |
