From db958cafb450a3850c22a0e5fc38db8b77196703 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 24 Jul 2010 19:44:28 +0200 Subject: [PATCH] Remove windows from the save set in unmanage While a window is in the save set, it will automatically be made visible again when awesome exits/dies. This makes sure that the next window manager will pick this window up and handle it properly again. But when a window explicitly asks not to be visible, it doesn't want to be visible. Even if awesome dies. So we should remove the client's window from the save set in client_unmanage. Thanks to anrxc and his xwrits. Signed-off-by: Uli Schlachter --- client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client.c b/client.c index 49d0e915..f10213b1 100644 --- a/client.c +++ b/client.c @@ -1317,6 +1317,10 @@ client_unmanage(client_t *c) ewmh_update_net_client_list(c->phys_screen); + /* Remove this window from the save set since this shouldn't be made visible + * after a restart anymore. */ + xcb_change_save_set(globalconf.connection, XCB_SET_MODE_DELETE, c->window); + /* set client as invalid */ c->invalid = true;