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 3113fee2ee
commit 635223b5fe
1 changed files with 7 additions and 0 deletions

View File

@ -72,6 +72,13 @@ 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)
{
xcb_reparent_window(globalconf.connection, (*c)->window, globalconf.screen->root,
(*c)->geometry.x, (*c)->geometry.y);
}
a_dbus_cleanup();
systray_cleanup();