dont change the stacking order hint while shuting down
This commit is contained in:
parent
434ed8b0bb
commit
990b74a49e
1 changed files with 7 additions and 1 deletions
|
@ -13,12 +13,18 @@ void stacking_set_list()
|
||||||
GList *it;
|
GList *it;
|
||||||
guint size = g_list_length(stacking_list);
|
guint size = g_list_length(stacking_list);
|
||||||
|
|
||||||
|
/* on shutdown, don't update the properties, so that we can read it back
|
||||||
|
in on startup and re-stack the windows as they were before we shut down
|
||||||
|
*/
|
||||||
|
if (ob_state == State_Exiting) return;
|
||||||
|
|
||||||
/* create an array of the window ids (from bottom to top,
|
/* create an array of the window ids (from bottom to top,
|
||||||
reverse order!) */
|
reverse order!) */
|
||||||
if (size > 0) {
|
if (size > 0) {
|
||||||
windows = g_new(Window, size);
|
windows = g_new(Window, size);
|
||||||
win_it = windows;
|
win_it = windows;
|
||||||
for (it = g_list_last(stacking_list); it != NULL; it = it->prev, ++win_it)
|
for (it = g_list_last(stacking_list); it != NULL;
|
||||||
|
it = it->prev, ++win_it)
|
||||||
*win_it = ((Client*)it->data)->window;
|
*win_it = ((Client*)it->data)->window;
|
||||||
} else
|
} else
|
||||||
windows = NULL;
|
windows = NULL;
|
||||||
|
|
Loading…
Reference in a new issue