aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-08 16:41:09 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-08 16:41:09 +0000
commit4c7d29f7eb95b10a0fadc406924db537a18b12ca (patch)
tree52ae80c0199d2774fcedb07d590aaa1a44c796d1 /wayland.c
parentmulti-seat: re-enable scrollback search support (diff)
multi-seat: re-enable selection support (excluding OSC 52)
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index 54d65927..f9ec4483 100644
--- a/wayland.c
+++ b/wayland.c
@@ -106,6 +106,14 @@ seat_destroy(struct seat *seat)
if (seat->pointer.xcursor_callback != NULL)
wl_callback_destroy(seat->pointer.xcursor_callback);
+ if (seat->clipboard.data_source != NULL)
+ wl_data_source_destroy(seat->clipboard.data_source);
+ if (seat->clipboard.data_offer != NULL)
+ wl_data_offer_destroy(seat->clipboard.data_offer);
+ if (seat->primary.data_source != NULL)
+ zwp_primary_selection_source_v1_destroy(seat->primary.data_source);
+ if (seat->primary.data_offer != NULL)
+ zwp_primary_selection_offer_v1_destroy(seat->primary.data_offer);
if (seat->primary_selection_device != NULL)
zwp_primary_selection_device_v1_destroy(seat->primary_selection_device);
if (seat->data_device != NULL)