windows on other desktops are iconic state too

This commit is contained in:
Dana Jansens 2007-05-07 03:16:45 +00:00
parent f138bd8007
commit 13df16a681

View file

@ -2143,9 +2143,11 @@ static void client_change_wm_state(ObClient *self)
old = self->wmstate;
if (self->shaded || self->iconic)
if (self->shaded || self->iconic ||
(self->desktop != DESKTOP_ALL && self->desktop != screen_desktop))
{
self->wmstate = IconicState;
else
} else
self->wmstate = NormalState;
if (old != self->wmstate) {