[X2Go-Commits] [nx-libs] 60/108: Clipboard.c: more DEBUG output
git-admin at x2go.org
git-admin at x2go.org
Fri Nov 9 20:35:47 CET 2018
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository nx-libs.
commit 2517d8c1f9c2d4460e0ddcccc66a7f0835d2d847
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Wed Jul 25 22:25:22 2018 +0200
Clipboard.c: more DEBUG output
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 15 ++++++++++++---
1 file 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 285a738..942771a 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;
}
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list