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;
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;
}
}