[X2Go-Commits] [nx-libs] 395/429: Clipboard.c: add FIXMEs

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:37:14 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 0631eece96650afb3715a5c5009005914f90a9b4
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Wed Mar 10 10:06:29 2021 +0100

    Clipboard.c: add FIXMEs
    
    Also improve code to better match the situation described in the FIXME
---
 nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index dde5506fa..87473b221 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1670,11 +1670,16 @@ Bool nxagentCollectPropertyEventFromXServer(int resource)
    * in the selection."
    * FIXME: this uses serverTransToAgentProperty which is shared between
    * all the selections. Could be a problem with simultaneous transfers.
+   * FIXME: NXGetCollectedProperty can return 0 and True. Some other
+   * functions in this field return False as well. Clean up that
+   * mess...
    */
-  if (result != 0 && ulReturnBytesLeft == 0)
+  if (result == True && ulReturnBytesLeft == 0)
   {
     #ifdef DEBUG
-    fprintf (stderr, "%s: Retrieved property data - deleting it for ICCCM conformity.\n", __func__);
+    fprintf (stderr, "%s: Retrieved property data - deleting property [%ld][%s] "
+             "for ICCCM conformity.\n", __func__, serverTransToAgentProperty,
+             NameForRemAtom(serverTransToAgentProperty));
     #endif
     XDeleteProperty(nxagentDisplay, serverWindow, serverTransToAgentProperty);
   }

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