rcxml.c: support 'to.action' in mousebind

...in support to specifying 'left', 'right' and so on with actions
GoToDesktop and SendToDesktop.

For example:

    <mouse>
      <default/>
      <context name="Desktop">
        <mousebind button="Up" action="Scroll">
          <action name="GoToDesktop" to="left"/>
        </mousebind>
        <mousebind button="Down" action="Scroll">
          <action name="GoToDesktop" to="right"/>
        </mousebind>
      </context>
    </mouse>
This commit is contained in:
Johan Malm 2022-10-30 14:23:10 +00:00 committed by Johan Malm
parent 5fb18a7016
commit e9c3080f76

View file

@ -139,6 +139,8 @@ fill_mousebind(char *nodename, char *content)
action_arg_add_str(current_mousebind_action, NULL, content); action_arg_add_str(current_mousebind_action, NULL, content);
} else if (!strcmp(nodename, "menu.action")) { } else if (!strcmp(nodename, "menu.action")) {
action_arg_add_str(current_mousebind_action, NULL, content); action_arg_add_str(current_mousebind_action, NULL, content);
} else if (!strcmp(nodename, "to.action")) {
action_arg_add_str(current_mousebind_action, NULL, content);
} }
} }