Rewrite action handling to allow multiple actions at once

This commit is contained in:
Consolatis 2022-01-05 09:11:24 +01:00 committed by Johan Malm
parent a54ce40e1c
commit 0b45cce648
12 changed files with 276 additions and 140 deletions

View file

@ -24,8 +24,7 @@ struct mousebind {
/* ex: doubleclick, press, drag */
enum mouse_event mouse_event;
const char *action;
const char *command;
struct wl_list actions;
struct wl_list link; /* rcxml::mousebinds */
bool pressed_in_context; /* used in click events */
@ -34,6 +33,5 @@ struct mousebind {
enum mouse_event mousebind_event_from_str(const char *str);
uint32_t mousebind_button_from_str(const char *str, uint32_t *modifiers);
struct mousebind *mousebind_create(const char *context);
struct mousebind *mousebind_create_from(struct mousebind *from, const char *context);
#endif /* __LABWC_MOUSEBIND_H */