From 79799c8cdf5238dc5d49696458dbef1acbd707d2 Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Thu, 27 Jun 2024 15:36:17 +0800 Subject: [PATCH] linux: send the correct for TARGETS request --- clipboard_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clipboard_linux.c b/clipboard_linux.c index 45ac607..0dd5798 100644 --- a/clipboard_linux.c +++ b/clipboard_linux.c @@ -171,7 +171,7 @@ int clipboard_write(char *typ, unsigned char *buf, size_t n, uintptr_t handle) { // Reply atoms for supported targets, other clients should // request the clipboard again and obtain the data if their // implementation is correct. - Atom targets[] = { atomString, atomImage }; + Atom targets[] = { targetsAtom, target }; R = (*P_XChangeProperty)(ev.display, ev.requestor, ev.property, XA_ATOM, 32, PropModeReplace, (unsigned char *)&targets, sizeof(targets)/sizeof(Atom));