]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
change how masks are loaded, let you override just one. simpler code too.
[chaz/openbox] / openbox / focus.c
index a4d3f9f2d187853c211f6fb38e7f268d9e45a076..393ec98eaf0e0b3bd478df5b8b034e66c806e190 100644 (file)
@@ -255,7 +255,7 @@ ObClient* focus_fallback_target(gboolean allow_refocus, ObClient *old)
     return desktop;   
 }
 
-void focus_fallback(gboolean allow_refocus)
+ObClient* focus_fallback(gboolean allow_refocus)
 {
     ObClient *new;
     ObClient *old = focus_client;
@@ -266,8 +266,11 @@ void focus_fallback(gboolean allow_refocus)
     */
     focus_nothing();
 
-    if ((new = focus_fallback_target(allow_refocus, old)))
+    if ((new = focus_fallback_target(allow_refocus, old))) {
         client_focus(new);
+        return new;
+    } else
+        return NULL;
 }
 
 void focus_nothing()
This page took 0.022383 seconds and 4 git commands to generate.