aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-07-25 22:25:22 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-10-27 20:55:02 +0200
commit2517d8c1f9c2d4460e0ddcccc66a7f0835d2d847 (patch)
treefb0cb2f61ee28a5da61dddf3dd621222cb5fc3dd /nx-X11/programs
parent934d9eae6f92a69fc4fd2fe79c7b67689902c01c (diff)
downloadnx-libs-2517d8c1f9c2d4460e0ddcccc66a7f0835d2d847.tar.gz
nx-libs-2517d8c1f9c2d4460e0ddcccc66a7f0835d2d847.tar.bz2
nx-libs-2517d8c1f9c2d4460e0ddcccc66a7f0835d2d847.zip
Clipboard.c: more DEBUG output
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 285a7380b..942771a84 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1588,14 +1588,21 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
int nxagentSendNotify(xEvent *event)
{
#ifdef DEBUG
- fprintf(stderr, "nxagentSendNotify: Got called.\n");
+ fprintf(stderr, "%s: Got called.\n", __func__);
#endif
if (agentClipboardStatus != 1)
{
+ #ifdef DEBUG
+ fprintf(stderr, "%s: agentClipboardStatus != 1 - doing nothing.\n", __func__);
+ #endif
return 0;
}
+ #ifdef DEBUG
+ fprintf(stderr, "%s: property is [%d][%s].\n", __func__, event->u.selectionNotify.property, NameForAtom(event->u.selectionNotify.property));
+ #endif
+
if (event->u.selectionNotify.property == clientCutProperty)
{
XSelectionEvent x;
@@ -1630,7 +1637,7 @@ int nxagentSendNotify(xEvent *event)
x.time = CurrentTime;
#ifdef DEBUG
- fprintf(stderr, "nxagentSendNotify: Propagating clientCutProperty to requestor [%p].\n", x.requestor);
+ fprintf(stderr, "%s: Propagating clientCutProperty to requestor [%p].\n", __func__, x.requestor);
#endif
result = XSendEvent (nxagentDisplay, x.requestor, False,
@@ -1646,7 +1653,9 @@ int nxagentSendNotify(xEvent *event)
return 1;
}
-
+ #ifdef DEBUG
+ fprintf(stderr, "nxagentSendNotify: sent nothing.\n");
+ #endif
return 0;
}