always show the client on desktop change, only use donthide to not hide it

This commit is contained in:
Dana Jansens 2007-06-13 17:18:57 +00:00
parent 8923bd7026
commit 4669203fd8

View file

@ -3260,7 +3260,8 @@ void client_set_desktop_recursive(ObClient *self,
frame_adjust_state(self->frame);
/* 'move' the window to the new desktop */
if (!donthide)
client_showhide(self);
client_hide(self);
client_show(self);
/* raise if it was not already on the desktop */
if (old != DESKTOP_ALL && !dontraise)
stacking_raise(CLIENT_AS_WINDOW(self));