only refocus the omnipresent window if its allowed
authorDana Jansens <danakj@orodu.net>
Thu, 15 Mar 2007 01:11:52 +0000 (01:11 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 15 Mar 2007 01:11:52 +0000 (01:11 +0000)
openbox/focus.c

index 817640f..f06a077 100644 (file)
@@ -234,7 +234,7 @@ ObClient* focus_fallback_target(gboolean allow_refocus, ObClient *old)
 #endif
 
     ob_debug("trying omnipresentness\n");
 #endif
 
     ob_debug("trying omnipresentness\n");
-    if (old && old->desktop == DESKTOP_ALL)
+    if (allow_refocus && old && old->desktop == DESKTOP_ALL)
         return old;
 
 
         return old;