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; }