]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
check for focus before unfocusing
[chaz/openbox] / 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.020378 seconds and 4 git commands to generate.