check if the unmapped client is not the scratchpad

This commit is contained in:
Julien Danjou 2008-02-26 17:45:55 +01:00
parent b7d79d8bea
commit e5038732ca

View file

@ -552,6 +552,8 @@ client_unmanage(Client *c)
/* remove client everywhere */
client_list_detach(&globalconf.clients, c);
focus_delete_client(c);
if(globalconf.scratch.client == c)
globalconf.scratch.client = NULL;
for(tag = globalconf.screens[c->screen].tags; tag; tag = tag->next)
untag_client(c, tag);