X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions.c;h=7854636131d75be20aeb4be85423600015c5fcaf;hb=965ed8907a5dd81d5ffbc93b67a672fa78833854;hp=fda119c825008aa533c357b310fabc69b767a75c;hpb=1b392b5fbe85c55cda2b0fc9d1e10cbe56216185;p=chaz%2Fopenbox diff --git a/openbox/actions.c b/openbox/actions.c index fda119c8..78546361 100644 --- a/openbox/actions.c +++ b/openbox/actions.c @@ -304,9 +304,12 @@ void actions_run_acts(GSList *acts, if (interactive_act) actions_interactive_cancel_act(); if (act->i_pre) - act->i_pre(act->options); - ok = actions_interactive_begin_act(act, state); + if (!act->i_pre(state, act->options)) + act->i_input = NULL; /* remove the interactivity */ } + /* check again cuz it might have been cancelled */ + if (actions_act_is_interactive(act)) + ok = actions_interactive_begin_act(act, state); } /* fire the action's run function with this data */