]> Dogcows Code - chaz/openbox/commitdiff
distribute focus when entering/leaving show-the-desktop mode
authorDana Jansens <danakj@orodu.net>
Thu, 17 Apr 2003 17:32:09 +0000 (17:32 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 17 Apr 2003 17:32:09 +0000 (17:32 +0000)
openbox/screen.c

index 118798e8e8b02f00a8a3b61c30b37a0b6e84948a..72363cdc74ee61f0bc9e41aebc51e80b005c0f36 100644 (file)
@@ -424,6 +424,16 @@ void screen_show_desktop(gboolean show)
        }
     }
 
+    if (show) {
+        /* focus desktop */
+        for (it = focus_order[screen_desktop]; it; it = it->next)
+            if (((Client*)it->data)->type == Type_Desktop &&
+                client_focus(it->data))
+                break;
+    } else {
+        focus_fallback(Fallback_NoFocus);
+    }
+
     show = !!show; /* make it boolean */
     PROP_SET32(ob_root, net_showing_desktop, cardinal, show);
 
This page took 0.022622 seconds and 4 git commands to generate.