From e773eecc03d90417b65fc9c49d8e318d80592158 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 --- objects/client.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/objects/client.c b/objects/client.c index 69554f7f..6d7c384f 100644 --- a/objects/client.c +++ b/objects/client.c @@ -985,6 +985,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;