X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=faf065a12fedd0bf10057a27b7f14a2a43ff0efa;hb=7d164842e0d0c3138401fad0dafc6f21bba0a04f;hp=4436aec9d2722a6e45429292cd53077ae33357ea;hpb=9f7554a4fea4f03bf986cf2235f096273176cfd6;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index 4436aec9..faf065a1 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1588,7 +1588,7 @@ void action_send_to_desktop(union ActionData *data) data->sendto.desk == DESKTOP_ALL) { client_set_desktop(c, data->sendto.desk, data->sendto.follow); if (data->sendto.follow && data->sendto.desk != screen_desktop) - screen_set_desktop(data->sendto.desk, c != focus_client); + screen_set_desktop(data->sendto.desk, TRUE); } } @@ -1621,7 +1621,8 @@ void action_desktop_dir(union ActionData *data) if (!data->sendtodir.inter.any.interactive || (data->sendtodir.inter.final && !data->sendtodir.inter.cancel)) { - if (d != screen_desktop) screen_set_desktop(d, TRUE); + if (d != screen_desktop) + screen_set_desktop(d, TRUE); } } @@ -1645,7 +1646,7 @@ void action_send_to_desktop_dir(union ActionData *data) { client_set_desktop(c, d, data->sendtodir.follow); if (data->sendtodir.follow && d != screen_desktop) - screen_set_desktop(d, c != focus_client); + screen_set_desktop(d, TRUE); } }