]> Dogcows Code - chaz/openbox/commitdiff
move to the desktop of the activated window
authorDana Jansens <danakj@orodu.net>
Fri, 11 Jul 2003 00:08:43 +0000 (00:08 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 11 Jul 2003 00:08:43 +0000 (00:08 +0000)
openbox/client.c

index a339bf0f038ca0ff36c801a0ea80f0e6dcc19108..3ed2e9df416bd6abd505c3d6cfedcaeeabdafb82 100644 (file)
@@ -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 */
This page took 0.029256 seconds and 4 git commands to generate.