From 63b0c5616ffe67aa021234abe6635adb9c91879b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 8 Apr 2003 06:31:25 +0000 Subject: [PATCH] check for focus before unfocusing --- openbox/client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbox/client.c b/openbox/client.c index 22db6738..7fca4796 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -312,7 +312,8 @@ void client_unmanage(Client *self) } } - client_unfocus(self); + if (focus_client == self) + client_unfocus(self); /* remove from its group */ if (self->group) { -- 2.39.2