From 86e242b9831a968285da0dce1fa65aef4bf206a2 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 4ab72586..6b7726f1 100644 --- a/awesome.c +++ b/awesome.c @@ -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);