all repos — openbox @ 6a61f0c433eeecfb289ab6c9db635e25958a6340

openbox fork - make it a bit more like ryudo

fix non instrusive stacking adds, they didnt account for layers at all
Dana Jansens danakj@orodu.net
commit

6a61f0c433eeecfb289ab6c9db635e25958a6340

parent

aaabb13c0a1c41b6b20ea75df707671569fb08ab

1 files changed, 9 insertions(+), 0 deletions(-)

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

@@ -385,6 +385,15 @@ if (!it_before) {

/* out of ideas, just add it normally... */ stacking_add(win); } else { + GList *it; + + /* make sure it's not in the wrong layer though ! */ + while (it_before && client->layer < ((ObClient*)it_before->data)->layer) + it_before = g_list_next(it_before); + while (it_before != stacking_list && + client->layer > ((ObClient*)g_list_previous(it_before)->data)->layer) + it_before = g_list_previous(it_before); + GList *wins = g_list_append(NULL, win); do_restack(wins, it_before); g_list_free(wins);