dont assert, just ignore client_unfocus() when the client isnt already focused
This commit is contained in:
parent
be79af11f6
commit
38370b2e82
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue