]> git.mdlowis.com Git - proto/labwc.git/commitdiff
do not add mouse bindings with no set context
authorbi4k8 <bi4k8@github>
Wed, 1 Dec 2021 22:34:51 +0000 (22:34 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 2 Dec 2021 17:58:31 +0000 (17:58 +0000)
src/config/mousebind.c

index ac988265c0afde9e019546503d3d376edc4402d1..0f4a0f58fc7eb84deb2eb56a2dbad054c8cef014 100644 (file)
@@ -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;
 }