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

@ -108,19 +108,6 @@ mousebind_create(const char *context)
if (m->context != LAB_SSD_NONE) {
wl_list_insert(&rc.mousebinds, &m->link);
}
return m;
}
struct mousebind *
mousebind_create_from(struct mousebind *from, const char *context)
{
if (!from) {
wlr_log(WLR_ERROR, "invalid mousebind instance specified");
return NULL;
}
struct mousebind *m = mousebind_create(context);
m->button = from->button;
m->modifiers = from->modifiers;
m->mouse_event = from->mouse_event;
wl_list_init(&m->actions);
return m;
}