From: Dana Jansens Date: Mon, 26 May 2003 18:39:48 +0000 (+0000) Subject: use frame->visible, not the desktop number, other states exist too, like show_desktop X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=4b2ec0d03c1f9706f542d5b64e08a1fca6ca508a;p=chaz%2Fopenbox use frame->visible, not the desktop number, other states exist too, like show_desktop --- diff --git a/openbox/client.c b/openbox/client.c index ade1a109..c7739fdd 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2237,7 +2237,7 @@ gboolean client_focus(Client *self) /* choose the correct target */ self = client_focus_target(self); - if (self->desktop != DESKTOP_ALL && self->desktop != screen_desktop) { + if (!self->frame->visible) { /* update the focus lists */ focus_order_to_top(self); return FALSE;