From: Dana Jansens Date: Wed, 9 May 2007 04:18:00 +0000 (+0000) Subject: optimization X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=44404518c3997c33758f9ed8dad57585e041454f;p=chaz%2Fopenbox optimization --- diff --git a/openbox/action.c b/openbox/action.c index 4573a866..0cf233ad 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1549,7 +1549,7 @@ void action_desktop_dir(union ActionData *data) !data->sendtodir.inter.final || data->sendtodir.inter.cancel) { - screen_set_desktop(d, TRUE); + if (d != screen_desktop) screen_set_desktop(d, TRUE); } } @@ -1570,7 +1570,7 @@ void action_send_to_desktop_dir(union ActionData *data) data->sendtodir.inter.cancel) { client_set_desktop(c, d, data->sendtodir.follow); - if (data->sendtodir.follow) + if (data->sendtodir.follow && d != screen_desktop) screen_set_desktop(d, TRUE); } }