use frame->visible, not the desktop number, other states exist too, like show_desktop
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
openbox/client.c
→
openbox/client.c
@@ -2237,7 +2237,7 @@
/* 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;