From 624d1371304a5ae4b3429ad5e4267aac7cd03dfd Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Mon, 12 Oct 2026 00:09:38 +0300 Subject: missing impls and hardening --- src/wayland/keyboard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/wayland/keyboard.c') diff --git a/src/wayland/keyboard.c b/src/wayland/keyboard.c index 6bdd58c..f7e2691 100644 --- a/src/wayland/keyboard.c +++ b/src/wayland/keyboard.c @@ -374,11 +374,11 @@ void wayland_display_paste(struct wayland_display *c, enum yasl_selection sel, s struct seat *s = c ? conn_active_seat(c) : NULL; if (!s || !s->clipboard) return; - c->paste_target = target; + if (!target || target->closed) return; if (sel == YASL_PRIMARY) - clipboard_paste_primary(s->clipboard); + clipboard_paste_primary(s->clipboard, target->surface); else - clipboard_paste(s->clipboard); + clipboard_paste(s->clipboard, target->surface); } bool wayland_surface_input_poll(struct wayland_surface *w, struct yasl_input_event *ev) -- cgit v1.2.3