summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-05-26 18:39:48 +0000
committerDana Jansens <danakj@orodu.net>2003-05-26 18:39:48 +0000
commit4b2ec0d03c1f9706f542d5b64e08a1fca6ca508a (patch)
treea389703520678f98b3ff6d18e94a59bc248d9f6b
parentc8dc32b67ad1ddad4802993d16067008147102e0 (diff)
use frame->visible, not the desktop number, other states exist too, like show_desktop
-rw-r--r--openbox/client.c2
1 files changed, 1 insertions, 1 deletions
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;