do not add mouse bindings with no set context

This commit is contained in:
bi4k8 2021-12-01 22:34:51 +00:00 committed by Johan Malm
parent 347e6115e3
commit 6b3320bcc1

View file

@ -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);
wl_list_insert(&rc.mousebinds, &m->link); if (m->context != LAB_SSD_NONE) {
wl_list_insert(&rc.mousebinds, &m->link);
}
return m; return m;
} }