aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-06-06 00:32:38 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-27 20:55:02 +0200
commit8baec5d70bd686f1e6398016de88705e9bdda415 (patch)
treec6779ad424066325a4f273e04a3740756d603e23 /nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
parent2eb4a65ebd9aa04bd663fb9a7f0680fd2c56e990 (diff)
downloadnx-libs-8baec5d70bd686f1e6398016de88705e9bdda415.tar.gz
nx-libs-8baec5d70bd686f1e6398016de88705e9bdda415.tar.bz2
nx-libs-8baec5d70bd686f1e6398016de88705e9bdda415.zip
Clipboard: print requested target in debugging mode
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Clipboard.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c38
1 files changed, 31 insertions, 7 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 703a491b6..5c8264893 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -168,15 +168,39 @@ int GetWindowProperty(WindowPtr pWin, Atom property, long longOffset, long longL
Bool nxagentValidServerTargets(Atom target)
{
- #ifdef DEBUG
- fprintf(stderr, "nxagentValidServerTargets: Got called.\n");
- #endif
-
- if (target == XA_STRING) return True;
- if (target == serverTEXT) return True;
+ if (target == XA_STRING)
+ {
+ #ifdef DEBUG
+ fprintf(stderr, "%s: valid target [XA_STRING].\n", __func__);
+ #endif
+ return True;
+ }
+ else if (target == serverTEXT)
+ {
+ #ifdef DEBUG
+ fprintf(stderr, "%s: valid target [TEXT].\n", __func__);
+ #endif
+ return True;
+ }
/* by dimbor */
- if (target == serverUTF8_STRING) return True;
+ else if (target == serverUTF8_STRING)
+ {
+ #ifdef DEBUG
+ fprintf(stderr, "%s: valid target [UTF8_STRING].\n", __func__);
+ #endif
+ return True;
+ }
+ else if (target == serverTARGETS)
+ {
+ #ifdef DEBUG
+ fprintf(stderr, "%s: special target [TARGETS].\n", __func__);
+ #endif
+ return False;
+ }
+ #ifdef DEBUG
+ fprintf(stderr, "%s: invalid target [%ld].\n", __func__, target);
+ #endif
return False;
}