diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-25 14:16:43 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-25 14:16:43 +0000 |
| commit | 912f8eed504c2a49c700b345d4171c3c2cdb0df7 (patch) | |
| tree | 593abcaa9052c87daf7f0dbff25745f189833061 /openbox/action.c | |
| parent | d1570968cf31b2b430e0007b6d51e0f9b9040ee2 (diff) | |
don't fallback focus if the focused client is being moved there and follow is on
Diffstat (limited to 'openbox/action.c')
| -rw-r--r-- | openbox/action.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } } |
