all repos — openbox @ 49b14e7bf5eb6256b69e6da66fbf7a0bca383038

openbox fork - make it a bit more like ryudo

Don't cancel interactive action when another one is run which shares the same run function.  This is how actions can cooperate!
Dana Jansens danakj@orodu.net
commit

49b14e7bf5eb6256b69e6da66fbf7a0bca383038

parent

6ea96a8a9759f3219383b513c4836dbef1e7112e

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M openbox/actions.copenbox/actions.c

@@ -248,7 +248,9 @@ gboolean ok = TRUE;

actions_setup_data(&data, uact, state, x, y, button, con, client); - if (!interactive_act || interactive_act->def != act->def) { + /* if they have the same run function, then we'll assume they are + cooperating and not cancel eachother out */ + if (!interactive_act || interactive_act->def->run != act->def->run) { if (actions_act_is_interactive(act)) { /* cancel the old one */ if (interactive_act)