aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-09 20:40:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-13 16:47:19 +0000
commit544c1b1976544085a2f27497c5c516bf1d9edfa3 (patch)
tree68df5e3b1c105d38c9a7bc8b9d5ea92b09b8b58c /wayland.c
parentrender: oops... swprintf() needs to number of *chars*, not *bytes* (diff)
config: wip: add support for modifiers in mouse bindings
Mouse bindings can now include modifiers. They are specified in pretty much the same way as in keyboard bindings: Control+BTN_LEFT
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/wayland.c b/wayland.c
index a10ed2b3..30271dd2 100644
--- a/wayland.c
+++ b/wayland.c
@@ -125,6 +125,8 @@ seat_destroy(struct seat *seat)
tll_free(it->item.bind.key_codes);
tll_free(seat->kbd.bindings.search);
+ tll_free(seat->mouse.bindings);
+
if (seat->kbd.xkb_compose_state != NULL)
xkb_compose_state_unref(seat->kbd.xkb_compose_state);
if (seat->kbd.xkb_compose_table != NULL)
@@ -762,9 +764,6 @@ handle_global(void *data, struct wl_registry *registry,
struct wl_seat *wl_seat = wl_registry_bind(
wayl->registry, name, &wl_seat_interface, required);
- /* Clipboard */
- /* Primary selection */
-
tll_push_back(wayl->seats, ((struct seat){
.wayl = wayl,
.wl_seat = wl_seat,