diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-30 16:58:30 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-30 16:58:30 +0000 |
| commit | 2c6c0757fa497f4c1e0648bcbb1927c0fa12862f (patch) | |
| tree | 16b71b97f63b2877fc9d62690f41cd5de42dbf55 /openbox/mouse.c | |
| parent | 009685bc4630a5deb3a48179450fb18e619c6e04 (diff) | |
make interactive actions a type and not special cases.
add the <interactive> option to them to turn off interactivity
Diffstat (limited to 'openbox/mouse.c')
| -rw-r--r-- | openbox/mouse.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/openbox/mouse.c b/openbox/mouse.c index 2e8507c3..15d77ae6 100644 --- a/openbox/mouse.c +++ b/openbox/mouse.c @@ -115,21 +115,9 @@ static gboolean fire_button(ObMouseAction a, ObFrameContext context, act->data.showmenu.y = y; } - if (act->func == action_desktop_dir) - { - act->data.desktopdir.final = FALSE; - act->data.desktopdir.cancel = FALSE; - } - if (act->func == action_send_to_desktop_dir) - { - act->data.sendtodir.final = FALSE; - act->data.sendtodir.cancel = FALSE; - } - - if (config_desktop_popup && - (act->func == action_desktop_dir || - act->func == action_send_to_desktop_dir)) - { + if (act->data.any.interactive) { + act->data.inter.cancel = FALSE; + act->data.inter.final = FALSE; keyboard_interactive_grab(state, c, context, act); } |
