[X2Go-Commits] [nx-libs] 344/429: Clipboard.c: avoid superflous atom conversion

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:37:03 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 855ddf2815b6eaeb92fb6c00de374b3b8226b5db
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Tue Oct 13 21:31:01 2020 +0200

    Clipboard.c: avoid superflous atom conversion
---
 nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index f430a01d1..7fcf63a00 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1416,8 +1416,8 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
     return;
   }
 
-  #ifdef DEBUG
   XSelectionEvent * e = (XSelectionEvent *)X;
+  #ifdef DEBUG
   if (e->requestor == serverWindow)
   {
     fprintf(stderr, "%s: this event has been sent by nxagent!\n", __func__);;
@@ -1434,12 +1434,10 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
   for (index = 0; index < nxagentMaxSelections; index++)
   {
     #ifdef DEBUG
-    fprintf (stderr, "%s: lastClients[%d].intSelection [%d] selection [%d] .\n",
-                 __func__, index, intSelAtoms[index],
-	             nxagentRemoteToLocalAtom(e->selection));
+    fprintf (stderr, "%s: index [%d] selAtom [%ld] remselection [%ld] .\n",
+                 __func__, index, remSelAtoms[index], e->selection);
     #endif
-    /* FIXME: take remSelAtoms[index]? */
-    if (intSelAtoms[index] == nxagentRemoteToLocalAtom(e->selection))
+    if (remSelAtoms[index] == e->selection)
     {
       break;
     }

--
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