all repos — openbox @ 38370b2e82c20acc1a42a03e1e26bdc018a0b9e5

openbox fork - make it a bit more like ryudo

dont assert, just ignore client_unfocus() when the client isnt already focused
Dana Jansens danakj@orodu.net
commit

38370b2e82c20acc1a42a03e1e26bdc018a0b9e5

parent

be79af11f68f2302023c0604a7662af74b2f423d

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -2594,11 +2594,12 @@ }

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)