From cfaf59728f0ff6ed5fe13f2093c89680943fa469 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Fri, 15 Nov 2019 22:04:11 +0100 Subject: Clipboard.c: report more supported targets fix one FIXME. This is a rewritten and extended version of a quick patch by Danil Pleshakov and Dimbor. --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'nx-X11') diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 85c4702b9..6ec30a3fb 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -716,16 +716,15 @@ void nxagentRequestSelection(XEvent *X) * The selection does not matter here, we will return this for * PRIMARY and CLIPBOARD. * - * FIXME: shouldn't we support UTF8_STRING, too? * FIXME: I am wondering if we should align this with * nxagentConvertSelection, where we report more formats. * FIXME: the perfect solution should not just answer with * XA_STRING but ask the real owner what format it supports. The * should then be sent to the original requestor. - * FIXME: these must be external Atoms! + * FIXME: add serverCOMPOUND_TEXT? */ - long targets[] = {XA_STRING}; + long targets[] = {XA_STRING, serverUTF8_STRING, serverTEXT, serverTARGETS, serverTIMESTAMP}; int numTargets = sizeof(targets) / sizeof(targets[0]); #ifdef DEBUG -- cgit v1.2.3