dont die if a non-visible window is raised/lowered

This commit is contained in:
Dana Jansens 2003-03-28 07:50:35 +00:00
parent bb087efb79
commit 63bbbaefc7

View file

@ -73,7 +73,8 @@ void stacking_raise(Client *client)
stacking_list = g_list_insert_before(stacking_list, it, client);
XRestackWindows(ob_display, wins, 2);
if (client->frame.visible)
XRestackWindows(ob_display, wins, 2);
stacking_set_list();
}
@ -116,7 +117,8 @@ void stacking_lower(Client *client)
it->next, client);
}
XRestackWindows(ob_display, wins, 2);
if (client->frame.visible)
XRestackWindows(ob_display, wins, 2);
stacking_set_list();
}