From 4b2ec0d03c1f9706f542d5b64e08a1fca6ca508a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 26 May 2003 18:39:48 +0000 Subject: [PATCH] use frame->visible, not the desktop number, other states exist too, like show_desktop --- openbox/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2