diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-12 00:09:38 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-12 00:09:38 +0300 |
| commit | 624d1371304a5ae4b3429ad5e4267aac7cd03dfd (patch) | |
| tree | 32de069f6eec83686521fc4bf39cc9874b123e93 /src/wayland/keyboard.c | |
| parent | e813252e685d761235ad45e170d97c9375f51958 (diff) | |
missing impls and hardening
Diffstat (limited to 'src/wayland/keyboard.c')
| -rw-r--r-- | src/wayland/keyboard.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
