summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-11 00:08:43 +0000
committerDana Jansens <danakj@orodu.net>2003-07-11 00:08:43 +0000
commit130a42710ce5a398b65583161cc9d86e342586b9 (patch)
tree17276b371b26157c37a4fc40b53fcdd35b241e6a
parent81af5a8b0caadc0a82ff2304c315f816c9576e93 (diff)
move to the desktop of the activated window
-rw-r--r--openbox/client.c5
1 files changed, 4 insertions, 1 deletions
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 */