diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-21 18:43:11 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-21 18:43:11 +0000 |
| commit | 38370b2e82c20acc1a42a03e1e26bdc018a0b9e5 (patch) | |
| tree | b8895a9b572e925973d13ba19f06f67a7877fcba /openbox | |
| parent | be79af11f68f2302023c0604a7662af74b2f423d (diff) | |
dont assert, just ignore client_unfocus() when the client isnt already focused
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/client.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbox/client.c b/openbox/client.c index e63f7867..3d51a78e 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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) |
