From 27988ecdde1e19b91adc1dbb308440541bfc246e Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 11 Jan 2015 10:42:45 +0100 Subject: [PATCH] Remove titlebars from clients during shutdown (FS#1159) This reparents all clients back to their proper position during shutdown, so that their top-left corner is now where their titlebar's top-left corner was. Hopefully, this fixes floating clients moving around across a restart. Signed-off-by: Uli Schlachter --- awesome.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/awesome.c b/awesome.c index 45c501e7..6e0213d5 100644 --- a/awesome.c +++ b/awesome.c @@ -74,6 +74,13 @@ 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) + { + xcb_reparent_window(globalconf.connection, (*c)->window, globalconf.screen->root, + (*c)->geometry.x, (*c)->geometry.y); + } + a_dbus_cleanup(); systray_cleanup();