]> Dogcows Code - chaz/openbox/blobdiff - openbox/actions.c
Make the relative desktop switching actions interactive
[chaz/openbox] / openbox / actions.c
index fda119c825008aa533c357b310fabc69b767a75c..7854636131d75be20aeb4be85423600015c5fcaf 100644 (file)
@@ -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 */
This page took 0.021686 seconds and 4 git commands to generate.