]> Dogcows Code - chaz/openbox/commitdiff
check for focus before unfocusing
authorDana Jansens <danakj@orodu.net>
Tue, 8 Apr 2003 06:31:25 +0000 (06:31 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 8 Apr 2003 06:31:25 +0000 (06:31 +0000)
openbox/client.c

index 22db6738d9037bda6f8cc3c2c4dd9a9df511eec3..7fca4796bbdb838c6060ed79774b60701c84f327 100644 (file)
@@ -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) {
This page took 0.028049 seconds and 4 git commands to generate.