]> Dogcows Code - chaz/openbox/commitdiff
dont move windows away from omnpresentness when deiconifying them
authorDana Jansens <danakj@orodu.net>
Fri, 4 May 2007 07:19:21 +0000 (07:19 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 4 May 2007 07:19:21 +0000 (07:19 +0000)
openbox/client.c

index 256190b97ff7ed74a670daadfe466807384d9274..3e43891e21bfc6ab5050a7af68a873204e349e76 100644 (file)
@@ -2611,7 +2611,8 @@ static void client_iconify_recursive(ObClient *self,
         } else {
             self->iconic = iconic;
 
-            if (curdesk)
+            if (curdesk && self->desktop != screen_desktop &&
+                self->desktop != DESKTOP_ALL)
                 client_set_desktop(self, screen_desktop, FALSE);
 
             /* this puts it after the current focused window */
@@ -3182,7 +3183,8 @@ void client_activate(ObClient *self, gboolean here, gboolean user)
         if (self->iconic)
             client_iconify(self, FALSE, here);
         if (self->desktop != DESKTOP_ALL &&
-            self->desktop != screen_desktop) {
+            self->desktop != screen_desktop)
+        {
             if (here)
                 client_set_desktop(self, screen_desktop, FALSE);
             else
This page took 0.074089 seconds and 4 git commands to generate.