From d9f30cc079ce4d528f39eabc131ba0ffa46fff07 Mon Sep 17 00:00:00 2001 From: nanahi <130121847+na-na-hi@users.noreply.github.com> Date: Fri, 22 Nov 2024 03:42:03 -0500 Subject: [PATCH] video/out/wayland_common: support clipboard monitoring Works by notifying property update when clipboard content is updated. --- video/out/wayland_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 986a3bdd9f..9f22f3f6a6 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -1925,6 +1925,10 @@ static void check_fd(struct vo_wayland_state *wl, struct vo_wayland_data_offer * talloc_free(wl->selection_text.start); wl->selection_text = content; content = (bstr){0}; + mp_cmd_t *cmd = mp_input_parse_cmd( + wl->vo->input_ctx, bstr0("notify-property clipboard"), "" + ); + mp_input_queue_cmd(wl->vo->input_ctx, cmd); } }