]> Dogcows Code - chaz/openbox/commitdiff
onlt raise the window when sending to a desktop it wasnt already on
authorDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 11:17:52 +0000 (11:17 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 11:17:52 +0000 (11:17 +0000)
openbox/client.c

index eddd96c427dc1de5cc08381133ce82aa26071790..95d1e97e1539613eb1c7b4c19a33017fac88fa2d 100644 (file)
@@ -1721,7 +1721,9 @@ void client_set_desktop(Client *self, guint target, gboolean donthide)
     /* 'move' the window to the new desktop */
     if (!donthide)
         client_showhide(self);
-    stacking_raise(self);
+    /* raise if it was not already on the desktop */
+    if (old != DESKTOP_ALL)
+        stacking_raise(self);
     screen_update_struts();
 
     /* update the focus lists */
This page took 0.028608 seconds and 4 git commands to generate.