fix non instrusive stacking adds, they didnt account for layers at all
This commit is contained in:
parent
aaabb13c0a
commit
6a61f0c433
1 changed files with 9 additions and 0 deletions
|
@ -385,6 +385,15 @@ void stacking_add_nonintrusive(ObWindow *win)
|
||||||
/* out of ideas, just add it normally... */
|
/* out of ideas, just add it normally... */
|
||||||
stacking_add(win);
|
stacking_add(win);
|
||||||
} else {
|
} 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);
|
GList *wins = g_list_append(NULL, win);
|
||||||
do_restack(wins, it_before);
|
do_restack(wins, it_before);
|
||||||
g_list_free(wins);
|
g_list_free(wins);
|
||||||
|
|
Loading…
Reference in a new issue