mousebind: add support for more contexts and mouse events

This commit is contained in:
ARDiDo 2021-11-01 20:32:14 -04:00 committed by Johan Malm
parent 98085b4546
commit 6b948c7106
4 changed files with 89 additions and 30 deletions

View file

@ -7,6 +7,9 @@
enum mouse_event {
MOUSE_ACTION_NONE = 0,
MOUSE_ACTION_DOUBLECLICK,
MOUSE_ACTION_CLICK,
MOUSE_ACTION_PRESS,
MOUSE_ACTION_RELEASE,
};
struct mousebind {
@ -21,6 +24,7 @@ struct mousebind {
const char *command;
struct wl_list link; /* rcxml::mousebinds */
bool pressed_in_context; /* used in click events */
};
enum mouse_event mousebind_event_from_str(const char *str);