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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-01-11 10:42:45 +01:00
parent 26ffd2c6f2
commit 27988ecdde
1 changed files with 7 additions and 0 deletions

View File

@ -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();