]> Dogcows Code - chaz/openbox/commitdiff
fix the unfocus action when focuslast is set, patch by faugn
authorMikael Magnusson <mikachu@comhem.se>
Sun, 22 Aug 2004 00:01:45 +0000 (00:01 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sun, 22 Aug 2004 00:01:45 +0000 (00:01 +0000)
openbox/focus.c

index b81e5632c4dbd68148177e3cfb98ebaa323265c6..2c8e58f446919c2dc8c0f672972c124ed16bbb3a 100644 (file)
@@ -320,7 +320,7 @@ ObClient* focus_fallback_target(ObFocusFallbackType type)
 
 void focus_fallback(ObFocusFallbackType type)
 {
-    ObClient *new;
+    ObClient *new = focus_fallback_target(type);
 
     /* unfocus any focused clients.. they can be focused by Pointer events
        and such, and then when I try focus them, I won't get a FocusIn event
@@ -328,7 +328,7 @@ void focus_fallback(ObFocusFallbackType type)
     */
     focus_set_client(NULL);
 
-    if ((new = focus_fallback_target(type)))
+    if (new)
         client_focus(new);
 }
 
This page took 0.026129 seconds and 4 git commands to generate.