From 0412acfdc02295973e3c216bda6ce4349dc86f80 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 26 Jul 2015 15:59:34 +0200 Subject: [PATCH] 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 --- awesome.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awesome.c b/awesome.c index b59e1b614..7c51efaa6 100644 --- a/awesome.c +++ b/awesome.c @@ -72,8 +72,8 @@ awesome_atexit(bool restart) lua_pushboolean(globalconf.L, restart); signal_object_emit(globalconf.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);