diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-25 00:38:55 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-25 00:38:55 +0000 |
| commit | 990b74a49e45e5715c131328b7e1464c5f5ccf6e (patch) | |
| tree | fd6ef941729413a342c88d4326d38330052baf57 | |
| parent | 434ed8b0bbb42037954e307e5ddc65819261286e (diff) | |
dont change the stacking order hint while shuting down
| -rw-r--r-- | openbox/stacking.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/openbox/stacking.c b/openbox/stacking.c index be6d07d6..1d296e5f 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -13,12 +13,18 @@ void stacking_set_list() GList *it; 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, reverse order!) */ if (size > 0) { windows = g_new(Window, size); 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; } else windows = NULL; |
