]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
make animation default on again. :/
[chaz/openbox] / openbox / focus.c
index 73b0e787eb5e41cd8ccf96014ae2880cd494ea0c..94257205196fa039a31eb3b3afa0a990a54406c6 100644 (file)
@@ -475,14 +475,14 @@ static gboolean valid_focus_target(ObClient *ft, gboolean dock_windows)
     else
         ok = (ft->type == OB_CLIENT_TYPE_NORMAL ||
               ft->type == OB_CLIENT_TYPE_DIALOG ||
-              (ft->type == OB_CLIENT_TYPE_TOOLBAR ||
-               ft->type == OB_CLIENT_TYPE_MENU ||
-               ft->type == OB_CLIENT_TYPE_UTILITY) &&
-              /* let alt-tab go to these windows when a window in its group
-                 already has focus ... */
-              ((focus_client && ft->group == focus_client->group) ||
+              ((ft->type == OB_CLIENT_TYPE_TOOLBAR ||
+                ft->type == OB_CLIENT_TYPE_MENU ||
+                ft->type == OB_CLIENT_TYPE_UTILITY) &&
+               /* let alt-tab go to these windows when a window in its group
+                  already has focus ... */
+               ((focus_client && ft->group == focus_client->group) ||
                 /* ... or if there are no application windows in its group */
-               !client_has_application_group_siblings(ft)));
+                !client_has_application_group_siblings(ft))));
     ok = ok && (ft->can_focus || ft->focus_notify);
     if (!dock_windows && /* use dock windows that skip taskbar too */
         !(ft->type == OB_CLIENT_TYPE_TOOLBAR || /* also, if we actually are */
@@ -499,7 +499,7 @@ static gboolean valid_focus_target(ObClient *ft, gboolean dock_windows)
         for (it = ft->transients; it; it = g_slist_next(it)) {
             ObClient *c = it->data;
 
-            if (c->frame->visible)
+            if (frame_visible(c->frame))
                 return FALSE;
         }
         return TRUE;
This page took 0.025075 seconds and 4 git commands to generate.