From: Dana Jansens Date: Tue, 8 Apr 2003 06:31:25 +0000 (+0000) Subject: check for focus before unfocusing X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=63b0c5616ffe67aa021234abe6635adb9c91879b;p=chaz%2Fopenbox check for focus before unfocusing --- 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) {