From: bi4k8 Date: Wed, 1 Dec 2021 22:34:51 +0000 (+0000) Subject: do not add mouse bindings with no set context X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=6b3320bcc1e3575b92333288064b644824c0c119;p=proto%2Flabwc.git do not add mouse bindings with no set context --- diff --git a/src/config/mousebind.c b/src/config/mousebind.c index ac988265..0f4a0f58 100644 --- a/src/config/mousebind.c +++ b/src/config/mousebind.c @@ -87,6 +87,8 @@ mousebind_create(const char *context) } struct mousebind *m = calloc(1, sizeof(struct mousebind)); m->context = context_from_str(context); - wl_list_insert(&rc.mousebinds, &m->link); + if (m->context != LAB_SSD_NONE) { + wl_list_insert(&rc.mousebinds, &m->link); + } return m; }