/* '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 */