From: Dana Jansens Date: Fri, 11 Jul 2003 00:08:43 +0000 (+0000) Subject: move to the desktop of the activated window X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=130a42710ce5a398b65583161cc9d86e342586b9;p=chaz%2Fopenbox move to the desktop of the activated window --- diff --git a/openbox/client.c b/openbox/client.c index a339bf0f..3ed2e9df 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -2425,7 +2425,10 @@ void client_activate(ObClient *self) if (client_normal(self) && screen_showing_desktop) screen_show_desktop(FALSE); 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) /* if its not visible for other reasons, then don't mess with it */