]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
when an omnipresent window has focus and you switch desktops, keep it focused
[chaz/openbox] / 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.022293 seconds and 4 git commands to generate.