]> Dogcows Code - chaz/openbox/blobdiff - openbox/focus.c
add decoration state to the frame struct. make client_configure adjust the frame...
[chaz/openbox] / openbox / focus.c
index 761d4f4ea3e1b3cdfd2b6fdf8842fd4a672cdccd..0a88865aa8736846775d102ddab443b5b93e7066 100644 (file)
@@ -235,8 +235,7 @@ void focus_fallback(FallbackType type)
                 return;
             }
 
-    /* nothing to focus */
-    focus_set_client(NULL);
+    /* nothing to focus, and already set it to none above */
 }
 
 static void popup_cycle(Client *c, gboolean show)
@@ -322,8 +321,13 @@ Client *focus_cycle(gboolean forward, gboolean linear, gboolean done,
         }
         /*ft = client_focus_target(it->data);*/
         ft = it->data;
+        /* we don't use client_can_focus here, because that doesn't let you
+           focus an iconic window, but we want to be able to, so we just check
+           if the focus flags on the window allow it, and its on the current
+           desktop */
         if (ft->transients == NULL && client_normal(ft) &&
-            client_can_focus(ft)) {
+            ((ft->can_focus || ft->focus_notify) &&
+             (ft->desktop == screen_desktop || ft->desktop == DESKTOP_ALL))) {
             if (ft != focus_cycle_target) { /* prevents flicker */
                 if (focus_cycle_target)
                     frame_adjust_focus(focus_cycle_target->frame, FALSE);
This page took 0.025604 seconds and 4 git commands to generate.