move to the desktop of the activated window

This commit is contained in:
Dana Jansens 2003-07-11 00:08:43 +00:00
parent 81af5a8b0c
commit 130a42710c

View file

@ -2425,7 +2425,10 @@ void client_activate(ObClient *self)
if (client_normal(self) && screen_showing_desktop) if (client_normal(self) && screen_showing_desktop)
screen_show_desktop(FALSE); screen_show_desktop(FALSE);
if (self->iconic) if (self->iconic)
client_iconify(self, FALSE, TRUE); client_iconify(self, FALSE, FALSE);
if (self->desktop != DESKTOP_ALL &&
self->desktop != screen_desktop)
screen_set_desktop(self->desktop);
else if (!self->frame->visible) else if (!self->frame->visible)
/* if its not visible for other reasons, then don't mess /* if its not visible for other reasons, then don't mess
with it */ with it */