all repos — openbox @ 322fc41e496022b1fdfc4753424146496148f232

openbox fork - make it a bit more like ryudo

only restack group windows on the same desktop
Dana Jansens danakj@orodu.net
commit

322fc41e496022b1fdfc4753424146496148f232

parent

9eed0756a4b5b27276978a33310afd18540ec609

1 files changed, 8 insertions(+), 5 deletions(-)

jump to
M openbox/stacking.copenbox/stacking.c

@@ -245,15 +245,18 @@ prev = g_list_previous(it);

next = g_list_next(it); if ((sit = g_slist_find(top->group->members, it->data))) { + ObClient *c; ObClientType t; ++i; + c = it->data; + t = c->type; - t = ((ObClient*)it->data)->type; - - if (t == OB_CLIENT_TYPE_TOOLBAR || - t == OB_CLIENT_TYPE_MENU || - t == OB_CLIENT_TYPE_UTILITY) + if ((c->desktop == selected->desktop || + c->desktop == DESKTOP_ALL) && + (t == OB_CLIENT_TYPE_TOOLBAR || + t == OB_CLIENT_TYPE_MENU || + t == OB_CLIENT_TYPE_UTILITY)) { ret = g_list_concat(ret, pick_windows(sit->data,