optimization

This commit is contained in:
Dana Jansens 2007-05-09 04:18:00 +00:00
parent e384e8a42e
commit 44404518c3

View file

@ -1549,7 +1549,7 @@ void action_desktop_dir(union ActionData *data)
!data->sendtodir.inter.final || !data->sendtodir.inter.final ||
data->sendtodir.inter.cancel) 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) data->sendtodir.inter.cancel)
{ {
client_set_desktop(c, d, data->sendtodir.follow); client_set_desktop(c, d, data->sendtodir.follow);
if (data->sendtodir.follow) if (data->sendtodir.follow && d != screen_desktop)
screen_set_desktop(d, TRUE); screen_set_desktop(d, TRUE);
} }
} }