X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient_list_menu.c;h=5fbb3a631f9bd3cfd1c36b7a559ce2317a26d72f;hb=fb2493115fd152e0f2247935eed1cbaca2f0ba6d;hp=d703babdf334621d3e0308a964fa7a8b14e6c19e;hpb=19b480058e869a588ea20be5e29017ae2052e967;p=chaz%2Fopenbox diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index d703babd..5fbb3a63 100644 --- a/openbox/client_list_menu.c +++ b/openbox/client_list_menu.c @@ -2,7 +2,7 @@ client_list_menu.c for the Openbox window manager Copyright (c) 2006 Mikael Magnusson - Copyright (c) 2003 Ben Jansens + Copyright (c) 2003-2007 Dana Jansens This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -49,9 +49,11 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data) menu_clear_entries(menu); - for (it = focus_order[d->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 == d->desktop || c->desktop == DESKTOP_ALL)) + { GSList *acts = NULL; ObAction* act; ObMenuEntry *e; @@ -61,7 +63,7 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data) if (!icons && c->iconic) { icons = TRUE; - menu_add_separator(menu, -1); + menu_add_separator(menu, -1, NULL); } act = action_from_string("Activate",