diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-09 04:18:00 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-09 04:18:00 +0000 |
| commit | 44404518c3997c33758f9ed8dad57585e041454f (patch) | |
| tree | 632cb7d7112bf4401cc807910252c204f40e9773 /openbox | |
| parent | e384e8a42e933fd75fcb57d6a575b9903e55ebde (diff) | |
optimization
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c index 4573a866..0cf233ad 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1549,7 +1549,7 @@ void action_desktop_dir(union ActionData *data) !data->sendtodir.inter.final || 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) { client_set_desktop(c, d, data->sendtodir.follow); - if (data->sendtodir.follow) + if (data->sendtodir.follow && d != screen_desktop) screen_set_desktop(d, TRUE); } } |
