summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-15 01:02:48 +0000
committerDana Jansens <danakj@orodu.net>2007-03-15 01:02:48 +0000
commit091e296a3dd1020cdd4af2acbd35735778f05788 (patch)
tree38d1c54eb659ff1ec9e224c04902f45b2043d4a6 /openbox
parent83d987d9abb9e15b7c6f41fdb29e4f6a0bf200f9 (diff)
when an omnipresent window has focus and you switch desktops, keep it focused
Diffstat (limited to 'openbox')
-rw-r--r--openbox/focus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbox/focus.c b/openbox/focus.c
index 07ac963c..5a4f9f07 100644
--- a/openbox/focus.c
+++ b/openbox/focus.c
@@ -233,6 +233,11 @@ ObClient* focus_fallback_target(gboolean allow_refocus, ObClient *old)
}
#endif
+ ob_debug("trying omnipresentness\n");
+ if (old && old->desktop == DESKTOP_ALL)
+ return old;
+
+
ob_debug("trying the focus order\n");
for (it = focus_order; it; it = g_list_next(it))
if (allow_refocus || it->data != old) {