From: Dana Jansens Date: Fri, 28 Mar 2003 11:17:52 +0000 (+0000) Subject: onlt raise the window when sending to a desktop it wasnt already on X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=3e8ecbeefaacda2b31bb46e8de58ef743dfaaee4;p=chaz%2Fopenbox onlt raise the window when sending to a desktop it wasnt already on --- 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 */