]> Dogcows Code - chaz/openbox/commitdiff
use the valid_focus_target() method for choosing what to show in the client list...
authorDana Jansens <danakj@orodu.net>
Fri, 8 Jan 2010 19:34:40 +0000 (14:34 -0500)
committerDana Jansens <danakj@orodu.net>
Fri, 8 Jan 2010 19:34:40 +0000 (14:34 -0500)
openbox/client_list_combined_menu.c
openbox/client_list_menu.c

index 5b79b806b09d3e6a22ca62ee566eeef7e2817e53..7f0e9f5ddb3c8924a694bee4ac23ecdcf7321271 100644 (file)
@@ -53,8 +53,7 @@ static gboolean self_update(ObMenuFrame *frame, gpointer data)
         menu_add_separator(menu, SEPARATOR, screen_desktop_names[desktop]);
         for (it = focus_order; it; it = g_list_next(it)) {
             ObClient *c = it->data;
-            if (client_normal(c) && (!c->skip_taskbar || c->iconic) &&
-                (c->desktop == desktop || c->desktop == DESKTOP_ALL))
+            if (focus_valid_target(c, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE))
             {
                 empty = FALSE;
 
index c49e63e997f2dd3bca6bfa1e60a81b1aeefda7b4..e1f4987a5910fe29dad0764e0da3ac02ca1610cd 100644 (file)
@@ -54,9 +54,7 @@ static gboolean desk_menu_update(ObMenuFrame *frame, gpointer data)
 
     for (it = focus_order; it; it = g_list_next(it)) {
         ObClient *c = it->data;
-        if (client_normal(c) && (!c->skip_taskbar || c->iconic) &&
-            (c->desktop == d->desktop || c->desktop == DESKTOP_ALL))
-        {
+        if (focus_valid_target(c, TRUE, TRUE, FALSE, FALSE, FALSE, FALSE)) {
             ObMenuEntry *e;
 
             empty = FALSE;
This page took 0.024842 seconds and 4 git commands to generate.