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:
parent
af06a47ad0
commit
86e242b983
|
@ -78,8 +78,8 @@ awesome_atexit(bool restart)
|
||||||
lua_pushboolean(L, restart);
|
lua_pushboolean(L, restart);
|
||||||
signal_object_emit(L, &global_signals, "exit", 1);
|
signal_object_emit(L, &global_signals, "exit", 1);
|
||||||
|
|
||||||
/* Move clients where we want them to be */
|
/* Move clients where we want them to be and keep the stacking order intact */
|
||||||
foreach(c, globalconf.clients)
|
foreach(c, globalconf.stack)
|
||||||
{
|
{
|
||||||
xcb_reparent_window(globalconf.connection, (*c)->window, globalconf.screen->root,
|
xcb_reparent_window(globalconf.connection, (*c)->window, globalconf.screen->root,
|
||||||
(*c)->geometry.x, (*c)->geometry.y);
|
(*c)->geometry.x, (*c)->geometry.y);
|
||||||
|
|
Loading…
Reference in New Issue