use frame->visible, not the desktop number, other states exist too, like show_desktop

This commit is contained in:
Dana Jansens 2003-05-26 18:39:48 +00:00
parent c8dc32b67a
commit 4b2ec0d03c

View 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;