X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Faction.c;h=3a4bab154b5c25c1b4eb20847e58ccd9cd76279d;hb=912f8eed504c2a49c700b345d4171c3c2cdb0df7;hp=85d84798ab991e3eb433afbc01f8887d92671d92;hpb=48314dc246bfc86c8272bca5f2784ca5ccfa3aa5;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index 85d84798..3a4bab15 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1588,7 +1588,8 @@ 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) - screen_set_desktop(data->sendto.desk, TRUE); + screen_set_desktop(data->sendto.desk, + data->sendto.follow && c == focus_client); } } @@ -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, TRUE); + screen_set_desktop(d, data->sendtodir.follow && c == focus_client); } }