From 6b3320bcc1e3575b92333288064b644824c0c119 Mon Sep 17 00:00:00 2001 From: bi4k8 Date: Wed, 1 Dec 2021 22:34:51 +0000 Subject: [PATCH] do not add mouse bindings with no set context --- src/config/mousebind.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }