[X2Go-Commits] [nx-libs] 357/429: Clipboard.c: print separator when receiving events/requests in debug mode
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:37:07 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit a4f2dd3febe01bc31a4076ca46efff03a3b6b5b0
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Thu Oct 29 23:16:10 2020 +0100
Clipboard.c: print separator when receiving events/requests in debug mode
This helps reading the debug output a lot!
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index d58707b2d..6a7ce5d15 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -769,7 +769,7 @@ int nxagentFindCurrentSelectionIndex(Atom sel)
void nxagentHandleSelectionClearFromXServer(XEvent *X)
{
#ifdef DEBUG
- fprintf(stderr, "%s: SelectionClear event for selection [%lu].\n", __func__, X->xselectionclear.selection);
+ fprintf(stderr, "---------\n%s: SelectionClear event for selection [%lu].\n", __func__, X->xselectionclear.selection);
#endif
if (!agentClipboardInitialized)
@@ -853,7 +853,7 @@ static void replyRequestSelectionToXServer(XEvent *X, Bool success)
void nxagentHandleSelectionRequestFromXServer(XEvent *X)
{
#ifdef DEBUG
- fprintf(stderr, "%s: Received SelectionRequestEvent from real server: selection [%ld][%s] " \
+ fprintf(stderr, "---------\n%s: Received SelectionRequestEvent from real server: selection [%ld][%s] " \
"target [%ld][%s] requestor [display[%s]/0x%lx] destination [%ld][%s]\n",
__func__,
X->xselectionrequest.selection, NameForRemAtom(X->xselectionrequest.selection),
@@ -1605,7 +1605,7 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
XSelectionEvent * e = (XSelectionEvent *)X;
#ifdef DEBUG
- fprintf(stderr, "%s: SelectionNotify event from real X server, property " \
+ fprintf(stderr, "---------\n%s: Received SelectionNotify event from real X server, property " \
"[%ld][%s] requestor [0x%lx] selection [%s] target [%ld][%s] time [%lu] send_event [%d].\n",
__func__, e->property, NameForRemAtom(e->property), e->requestor,
NameForRemAtom(e->selection), e->target,
@@ -2095,7 +2095,7 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
Window requestor, Atom property, Atom target, Time time)
{
#ifdef DEBUG
- fprintf(stderr, "%s: client %s requests sel [%s] "
+ fprintf(stderr, "---------\n%s: client %s requests sel [%s] "
"on window [0x%x] prop [%d][%s] target [%d][%s].\n", __func__,
nxagentClientInfoString(client), NameForIntAtom(selection), requestor,
property, NameForIntAtom(property),
@@ -2549,7 +2549,7 @@ int nxagentSendNotificationToSelfViaXServer(xEvent *event)
}
#ifdef DEBUG
- fprintf(stderr, "%s: Received SendNotify by client: property [%d][%s] target [%d][%s] selection [%d][%s] requestor [0x%x] time [%u].\n", __func__,
+ fprintf(stderr, "---------\n%s: Received SendNotify by client: property [%d][%s] target [%d][%s] selection [%d][%s] requestor [0x%x] time [%u].\n", __func__,
event->u.selectionNotify.property, NameForIntAtom(event->u.selectionNotify.property),
event->u.selectionNotify.target, NameForIntAtom(event->u.selectionNotify.target),
event->u.selectionNotify.selection, NameForIntAtom(event->u.selectionNotify.selection),
--
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