X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.c;h=95d1e97e1539613eb1c7b4c19a33017fac88fa2d;hb=5c472be0b312243b7ef705c84ef42f6560537e04;hp=eddd96c427dc1de5cc08381133ce82aa26071790;hpb=0fcd4c30ccd9a857d3ed643abf0c3463d1d5c8d7;p=chaz%2Fopenbox diff --git a/openbox/client.c b/openbox/client.c index eddd96c4..95d1e97e 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -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 */