mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
Rewrite action handling to allow multiple actions at once
This commit is contained in:
parent
a54ce40e1c
commit
0b45cce648
12 changed files with 276 additions and 140 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue