X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient_list_combined_menu.c;h=39a8e60b3f280a4370fc4feb00112d10fe4b9bdf;hb=c4732aeed20bc04a1e396a49003c85faccfb4cad;hp=f590dc10a992e9e4981df5e77df27b6637f6050d;hpb=bf247215bb015dbb4dfa39c38bf020aa815cd306;p=chaz%2Fopenbox diff --git a/openbox/client_list_combined_menu.c b/openbox/client_list_combined_menu.c index f590dc10..39a8e60b 100644 --- a/openbox/client_list_combined_menu.c +++ b/openbox/client_list_combined_menu.c @@ -55,9 +55,11 @@ static void self_update(ObMenuFrame *frame, gpointer data) e->data.normal.label = g_strdup(screen_desktop_names[desktop]); /* The one at the bottom will always have entries below it though */ menu_add_separator(menu, -1); - for (it = focus_order[desktop], i = 0; it; it = g_list_next(it), ++i) { + for (it = focus_order, i = 0; it; it = g_list_next(it), ++i) { ObClient *c = it->data; - if (client_normal(c) && (!c->skip_taskbar || c->iconic)) { + if (client_normal(c) && (!c->skip_taskbar || c->iconic) && + (c->desktop == desktop || c->desktop == DESKTOP_ALL)) + { GSList *acts = NULL; ObAction* act; const ObClientIcon *icon;