use frame->visible, not the desktop number, other states exist too, like show_desktop
This commit is contained in:
parent
c8dc32b67a
commit
4b2ec0d03c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue