From e5038732ca1aebdb0df22980a4a675f9ee6417f2 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 26 Feb 2008 17:45:55 +0100 Subject: [PATCH] check if the unmapped client is not the scratchpad --- client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client.c b/client.c index 31d31a911..433753df6 100644 --- a/client.c +++ b/client.c @@ -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);