diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-09 04:08:57 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-09 04:08:57 +0000 |
| commit | a3f8c5c45a1ff323fc088cc5af49ab48d5679e54 (patch) | |
| tree | 4363b131e431574a1e51e8fef092aa6acee88132 /openbox/action.c | |
| parent | 4546925b589d30c46f3bced74a02b3d531de894c (diff) | |
button presses which run actions during interactive actions will cancel the action.
when you cancel switching desktops, don't go back, just stop.
Diffstat (limited to 'openbox/action.c')
| -rw-r--r-- | openbox/action.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/openbox/action.c b/openbox/action.c index 4839088c..c106ead9 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1521,11 +1521,6 @@ void action_send_to_desktop(union ActionData *data) void action_desktop(union ActionData *data) { - static guint first = (unsigned) -1; - - if (data->inter.any.interactive && first == (unsigned) -1) - first = screen_desktop; - if (!data->inter.any.interactive || (!data->inter.cancel && !data->inter.final)) { @@ -1536,14 +1531,10 @@ void action_desktop(union ActionData *data) if (data->inter.any.interactive) screen_desktop_popup(data->desktop.desk, TRUE); } - } else if (data->inter.cancel) { - screen_set_desktop(first, TRUE); } - if (!data->inter.any.interactive || data->inter.final) { + if (!data->inter.any.interactive || data->inter.final) screen_desktop_popup(0, FALSE); - first = (unsigned) -1; - } } void action_desktop_dir(union ActionData *data) |
