First implemenation of <mouse> in rc.xml

Can successfully parse the following XML and and implement the action:

<mouse>
    <context name="TitleBar">
        <mousebind button="Left" action="DoubleClick">
            <action name="ToggleMaximize"/>
        </mousebind>
    </context>
</mouse>

The XML parsing code for this looks A LOT different than the already
existing XML parsing code. It may have to be reworked
This commit is contained in:
alex 2021-08-29 14:22:49 -04:00 committed by Johan Malm
parent 75564d6b8d
commit dfdb4e4b0e
6 changed files with 335 additions and 1 deletions

View file

@ -19,6 +19,7 @@ struct rcxml {
int font_size_activewindow;
int font_size_menuitem;
struct wl_list keybinds;
struct wl_list mousebinds;
};
extern struct rcxml rc;