From 44404518c3997c33758f9ed8dad57585e041454f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 9 May 2007 04:18:00 +0000 Subject: [PATCH] optimization --- openbox/action.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } -- 2.45.2