]> Dogcows Code - chaz/openbox/commitdiff
when an omnipresent window has focus and you switch desktops, keep it focused
authorDana Jansens <danakj@orodu.net>
Thu, 15 Mar 2007 01:02:48 +0000 (01:02 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 15 Mar 2007 01:02:48 +0000 (01:02 +0000)
openbox/focus.c

index 07ac963c3a4fc5ee41488e3e68e0b17fd8cd8478..5a4f9f07e3f364dbe133e56061e93f1bea8b7b29 100644 (file)
@@ -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) {
This page took 0.023166 seconds and 4 git commands to generate.