Keep stacking order across restarts

ReparentWindow puts the window at the top of the stacking order. Thus, we have
to reparent clients back to the root window in the stacking order.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-07-26 15:59:34 +02:00 committed by Daniel Hahler
parent af06a47ad0
commit 86e242b983
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ awesome_atexit(bool restart)
lua_pushboolean(L, restart);
signal_object_emit(L, &global_signals, "exit", 1);
/* Move clients where we want them to be */
foreach(c, globalconf.clients)
/* Move clients where we want them to be and keep the stacking order intact */
foreach(c, globalconf.stack)
{
xcb_reparent_window(globalconf.connection, (*c)->window, globalconf.screen->root,
(*c)->geometry.x, (*c)->geometry.y);