summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2010-01-11 15:13:55 -0500
committerDana Jansens <danakj@orodu.net>2010-01-11 15:13:55 -0500
commit14180a6b0dee05e73fd193db28fd94b4ef3046d1 (patch)
treebcf5f976a2d598827378d12a1b801532971824aa /openbox/screen.c
parent358056b102f633cb63ac7b9aa0cfdd25af77ddf3 (diff)
More work on refreshing the focus cycle dialog when windows are added/removed from the valid focus order
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 5ae07907..55fd58d6 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -713,8 +713,7 @@ void screen_set_desktop(guint num, gboolean dofocus)
for (it = stacking_list; it; it = g_list_next(it)) {
if (WINDOW_IS_CLIENT(it->data)) {
ObClient *c = it->data;
- if (client_show(c))
- focus_cycle_add(c);
+ client_show(c);
}
}
@@ -725,8 +724,6 @@ void screen_set_desktop(guint num, gboolean dofocus)
if (WINDOW_IS_CLIENT(it->data)) {
ObClient *c = it->data;
if (client_hide(c)) {
- focus_cycle_remove(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.
@@ -742,6 +739,8 @@ void screen_set_desktop(guint num, gboolean dofocus)
}
}
+ focus_cycle_addremove(NULL, TRUE);
+
event_end_ignore_all_enters(ignore_start);
if (event_curtime != CurrentTime)