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:
parent
26ffd2c6f2
commit
27988ecdde
|
@ -74,6 +74,13 @@ awesome_atexit(bool restart)
|
||||||
lua_pushboolean(L, restart);
|
lua_pushboolean(L, restart);
|
||||||
signal_object_emit(L, &global_signals, "exit", 1);
|
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();
|
a_dbus_cleanup();
|
||||||
|
|
||||||
systray_cleanup();
|
systray_cleanup();
|
||||||
|
|
Loading…
Reference in New Issue