[X2Go-Commits] [nx-libs] 61/219: NXdispatch.c: Use Callback instead of a modified function

git-admin at x2go.org git-admin at x2go.org
Sat Sep 28 12:10:21 CEST 2019


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 09ba97b2d0ff3e2f8203679480fe5a54020637b2
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Mon Jun 10 14:21:43 2019 +0200

    NXdispatch.c: Use Callback instead of a modified function
---
 nx-X11/programs/Xserver/hw/nxagent/Init.c       | 9 +++++++++
 nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c | 9 ---------
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/nx-X11/programs/Xserver/hw/nxagent/Init.c b/nx-X11/programs/Xserver/hw/nxagent/Init.c
index 80ca5fac1..1e24a618e 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Init.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c
@@ -143,6 +143,11 @@ void OsVendorEndRedirectErrorFFunction();
 static void nxagentGrabServerCallback(CallbackListPtr *callbacks, void *data,
                                    void *args);
 
+#ifdef NXAGENT_CLIPBOARD
+extern void nxagentSetSelectionCallback(CallbackListPtr *callbacks, void *data,
+                                   void *args);
+#endif
+
 void ddxInitGlobals(void)
 {
   /*
@@ -411,6 +416,10 @@ FIXME: These variables, if not removed at all because have probably
   blackRoot = TRUE;
 
   nxagentInitKeystrokes(False);
+
+#ifdef NXAGENT_CLIPBOARD
+  AddCallback(&SelectionCallback, nxagentSetSelectionCallback, NULL);
+#endif
 }
 
 void
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
index db055f0cd..44194ff3b 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
@@ -764,15 +764,6 @@ ProcSetSelectionOwner(register ClientPtr client)
 	    CallCallbacks(&SelectionCallback, &info);
 	}
 
-#ifdef NXAGENT_CLIPBOARD
-      if ((CurrentSelections[i].pWin != NULL) &&
-              (nxagentOption(Clipboard) != ClipboardNone) &&
-                  ((CurrentSelections[i].selection == XA_PRIMARY) ||
-                       (CurrentSelections[i].selection == MakeAtom("CLIPBOARD", 9, 0))))
-      {
-        nxagentSetSelectionOwner(&CurrentSelections[i]);
-      }
-#endif
 	return (client->noClientException);
     }
     else 

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