]> Dogcows Code - chaz/openbox/commitdiff
dont assert, just ignore client_unfocus() when the client isnt already focused
authorDana Jansens <danakj@orodu.net>
Sun, 21 Sep 2003 18:43:11 +0000 (18:43 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 21 Sep 2003 18:43:11 +0000 (18:43 +0000)
openbox/client.c

index e63f78678018361bd346a493d32cfd9408fc1be7..3d51a78e622e74212e8e724eeda74851d776cfe6 100644 (file)
@@ -2594,11 +2594,12 @@ gboolean client_focus(ObClient *self)
 
 void client_unfocus(ObClient *self)
 {
-    g_assert(focus_client == self);
+    if (focus_client == self) {
 #ifdef DEBUG_FOCUS
-    ob_debug("client_unfocus for %lx\n", self->window);
+        ob_debug("client_unfocus for %lx\n", self->window);
 #endif
-    focus_fallback(OB_FOCUS_FALLBACK_UNFOCUSING);
+        focus_fallback(OB_FOCUS_FALLBACK_UNFOCUSING);
+    }
 }
 
 void client_activate(ObClient *self, gboolean here)
This page took 0.027277 seconds and 4 git commands to generate.