aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-11-15 22:04:11 +0100
committerUlrich Sibiller <uli42@gmx.de>2019-11-15 22:10:13 +0100
commitcfaf59728f0ff6ed5fe13f2093c89680943fa469 (patch)
treee916a09ad7da36a597fcb1d2697165634033feff
parent9681d039c51af0971f8bd5daa775e5a5856899e7 (diff)
downloadnx-libs-cfaf59728f0ff6ed5fe13f2093c89680943fa469.tar.gz
nx-libs-cfaf59728f0ff6ed5fe13f2093c89680943fa469.tar.bz2
nx-libs-cfaf59728f0ff6ed5fe13f2093c89680943fa469.zip
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.
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c5
1 files changed, 2 insertions, 3 deletions
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