use frame->visible, not the desktop number, other states exist too, like show_desktop
authorDana Jansens <danakj@orodu.net>
Mon, 26 May 2003 18:39:48 +0000 (18:39 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 26 May 2003 18:39:48 +0000 (18:39 +0000)
openbox/client.c

index ade1a10..c7739fd 100644 (file)
@@ -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;