]> Dogcows Code - chaz/openbox/commitdiff
fix directional focus
authorDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 15:40:16 +0000 (15:40 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 13 May 2007 15:40:16 +0000 (15:40 +0000)
openbox/focus.c

index 00759514eb23e92680de8ffc615eec4f55947863..b084d35721fc08629854e84ca229e75afd10cf29 100644 (file)
@@ -743,10 +743,13 @@ static ObClient *focus_find_directional(ObClient *c, ObDirection dir,
         /* the currently selected window isn't interesting */
         if(cur == c)
             continue;
-        if (!dock_windows && !desktop_windows && !client_normal(cur))
+        if (cur->type == OB_CLIENT_TYPE_DOCK && !dock_windows)
             continue;
-        if (!(dock_windows && cur->type == OB_CLIENT_TYPE_DOCK) ||
-            (desktop_windows && cur->type == OB_CLIENT_TYPE_DESKTOP))
+        if (cur->type == OB_CLIENT_TYPE_DESKTOP && !desktop_windows)
+            continue;
+        if (!client_normal(cur) &&
+            cur->type != OB_CLIENT_TYPE_DOCK &&
+            cur->type != OB_CLIENT_TYPE_DESKTOP)
             continue;
         /* using c->desktop instead of screen_desktop doesn't work if the
          * current window was omnipresent, hope this doesn't have any other
This page took 0.023001 seconds and 4 git commands to generate.