diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-14 21:07:30 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-14 21:07:30 +0000 |
| commit | c80b496bf407d73bea169058abfcda44effad0dd (patch) | |
| tree | fca8985046322baf23147257a0b325bfa30e1d34 /openbox/client_list_menu.c | |
| parent | 496c769fcec42dc3092a9f128d270ff1a4f2e64b (diff) | |
make focus_order into one long list instead of having one per desktop. this actually fixes bugs with omnipresent windows and adding desktops. it is just overall a little nicer i think.
also this is not tested. sorry if it breaks everything.
Diffstat (limited to 'openbox/client_list_menu.c')
| -rw-r--r-- | openbox/client_list_menu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index d703babd..f49f623b 100644 --- a/openbox/client_list_menu.c +++ b/openbox/client_list_menu.c @@ -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; |
