From f8bfdc87b3ba200f5cb9dba85682a445174209ba Mon Sep 17 00:00:00 2001
From: Ulrich Sibiller <uli42@gmx.de>
Date: Tue, 16 Oct 2018 00:20:41 +0200
Subject: Clipboard.c: improve nxagentClearSelection() debug code

---
 nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'nx-X11/programs')

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index a7a1cbdf3..a02bd1cee 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -441,7 +441,7 @@ void nxagentClearSelection(XEvent *X)
   int i = 0;
 
   #ifdef DEBUG
-  fprintf(stderr, "nxagentClearSelection: Got called.\n");
+  fprintf(stderr, "%s: SelectionClear event for selection [%d].\n", __func__, X->xselectionclear.selection);
   #endif
 
   nxagentPrintClipboardStat("before nxagentClearSelection");
@@ -452,10 +452,6 @@ void nxagentClearSelection(XEvent *X)
     return;
   }
 
-  #ifdef DEBUG
-  fprintf(stderr, "nxagentClearSelection: SelectionClear event.\n");
-  #endif
-
   while ((i < nxagentMaxSelections) &&
             (lastSelectionOwner[i].selection != X->xselectionclear.selection))
   {
-- 
cgit v1.2.3