cleanup, and don't send windows to desktop if they are already there
Dana Jansens danakj@orodu.net
1 files changed,
3 insertions(+),
4 deletions(-)
jump to
M
openbox/action.c
→
openbox/action.c
@@ -1587,9 +1587,8 @@
if (data->sendto.desk < screen_num_desktops || 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, - data->sendto.follow && c == focus_client); + if (data->sendto.follow && data->sendto.desk != screen_desktop) + screen_set_desktop(data->sendto.desk, c == focus_client); } }@@ -1646,7 +1645,7 @@ (data->sendtodir.inter.final && !data->sendtodir.inter.cancel))
{ client_set_desktop(c, d, data->sendtodir.follow); if (data->sendtodir.follow && d != screen_desktop) - screen_set_desktop(d, data->sendtodir.follow && c == focus_client); + screen_set_desktop(d, c == focus_client); } }