do not add mouse bindings with no set context

This commit is contained in:
bi4k8 2021-12-01 22:34:51 +00:00
parent 09f5b7cdda
commit a1e1d7b61f

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