diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-10 16:51:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-10 16:51:59 +0000 |
| commit | f3424ddd3b80ccb43e68f832711c7a513f909e1f (patch) | |
| tree | 54fafd20d3a26ffa62c2bb455e5afc4d5cec13ef /openbox | |
| parent | 6ff520d02ad3091c7e32a3cfc11fe8d3cb9b042f (diff) | |
add comments explaining why we don't switch desktops immediately
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/action.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/openbox/action.c b/openbox/action.c index 5cc0bb21..58952a1a 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1545,6 +1545,9 @@ void action_desktop_dir(union ActionData *data) data->desktopdir.inter.any.interactive, data->desktopdir.inter.final, data->desktopdir.inter.cancel); + /* only move the desktop when the action is complete. if we switch + desktops during the interactive action, focus will move but with + NotifyWhileGrabbed and applications don't like that. */ if (!data->sendtodir.inter.any.interactive || (data->sendtodir.inter.final && !data->sendtodir.inter.cancel)) { @@ -1564,6 +1567,9 @@ void action_send_to_desktop_dir(union ActionData *data) data->sendtodir.inter.any.interactive, data->sendtodir.inter.final, data->sendtodir.inter.cancel); + /* only move the desktop when the action is complete. if we switch + desktops during the interactive action, focus will move but with + NotifyWhileGrabbed and applications don't like that. */ if (!data->sendtodir.inter.any.interactive || (data->sendtodir.inter.final && !data->sendtodir.inter.cancel)) { |
