]> Dogcows Code - chaz/openbox/blobdiff - openbox/client_list_menu.c
okay, so obviously i was a bit confused when i added this. the file posted to the...
[chaz/openbox] / openbox / client_list_menu.c
index 985cb729267e1fac1b0825ef246cb89ead415048..a1dc266c5066d1b713d8a3c68ade1cfe96d5a816 100644 (file)
@@ -49,7 +49,7 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data)
 
     for (it = focus_order[d->desktop], i = 0; it; it = g_list_next(it), ++i) {
         ObClient *c = it->data;
-        if (client_normal(c)) {
+        if (client_normal(c) && !c->skip_taskbar) {
             GSList *acts = NULL;
             ObAction* act;
             ObMenuEntry *e;
@@ -86,10 +86,14 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data)
 
         GSList *acts = NULL;
         ObAction* act;
+        ObMenuEntry *e;
+
         act = action_from_string("Desktop", OB_USER_ACTION_MENU_SELECTION);
         act->data.desktop.desk = d->desktop;
         acts = g_slist_append(acts, act);
-        menu_add_normal(menu, 0, _("Go there..."), acts);
+        e = menu_add_normal(menu, 0, _("Go there..."), acts);
+        if (d->desktop == screen_desktop)
+            e->data.normal.enabled = FALSE;
     }
 }
 
This page took 0.024576 seconds and 4 git commands to generate.