mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
do not add mouse bindings with no set context
This commit is contained in:
parent
347e6115e3
commit
6b3320bcc1
1 changed files with 3 additions and 1 deletions
|
|
@ -87,6 +87,8 @@ mousebind_create(const char *context)
|
||||||
}
|
}
|
||||||
struct mousebind *m = calloc(1, sizeof(struct mousebind));
|
struct mousebind *m = calloc(1, sizeof(struct mousebind));
|
||||||
m->context = context_from_str(context);
|
m->context = context_from_str(context);
|
||||||
|
if (m->context != LAB_SSD_NONE) {
|
||||||
wl_list_insert(&rc.mousebinds, &m->link);
|
wl_list_insert(&rc.mousebinds, &m->link);
|
||||||
|
}
|
||||||
return m;
|
return m;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue