X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmouse.c;h=e8b6aec0b855956bb8d84ebecf7a8d16dff782c9;hb=ed6f5152ebeff016b9fbaadfe71ca722637661ea;hp=2e8507c347784011916350573a336a0f5cd9ec3f;hpb=a098c2437e96d58c647559b46278bc92954e9bbe;p=chaz%2Fopenbox diff --git a/openbox/mouse.c b/openbox/mouse.c index 2e8507c3..e8b6aec0 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); } @@ -358,6 +346,13 @@ gboolean mouse_bind(char *buttonstr, char *contextstr, ObMouseAction mact, grab_all_clients(FALSE); + /* when there are no modifiers in the binding, then the action cannot + be interactive */ + if (!state && action->data.any.interactive) { + action->data.any.interactive = FALSE; + action->data.inter.final = TRUE; + } + /* add the binding */ b = g_new0(ObMouseBinding, 1); b->state = state;