diff options
author | Ilia Bozhinov <ammen99@gmail.com> | 2020-08-17 11:33:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 11:33:57 +0200 |
commit | 9feeb2738dfc5a2b07a817938cef9d553d0a26ee (patch) | |
tree | 45812b077e7712345285be2d2e7fd5f940bd78a9 | |
parent | 379835c42f182aa2c8fa814dea20a325361f8bdf (diff) |
backend/wayland: destroy relative pointer when output is disconnected
Fixes #2243
Fixes #2106
-rw-r--r-- | backend/wayland/seat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c index 1fcb93e5..d19744d8 100644 --- a/backend/wayland/seat.c +++ b/backend/wayland/seat.c @@ -473,6 +473,9 @@ static void pointer_handle_output_destroy(struct wl_listener *listener, void *data) { struct wlr_wl_pointer *pointer = wl_container_of(listener, pointer, output_destroy); + if (pointer->relative_pointer) { + zwp_relative_pointer_v1_destroy(pointer->relative_pointer); + } wlr_input_device_destroy(&pointer->input_device->wlr_input_device); } |