[X2Go-Commits] [nx-libs] 409/429: Clipboard.c: rename nxagentFindLastSelectionOwnerIndex()

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:37:17 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 c775bedbcb6ead00548783b362de165b3f6968a2
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Wed Jun 16 20:47:55 2021 +0200

    Clipboard.c: rename nxagentFindLastSelectionOwnerIndex()
    
    Did not refer to LastSelectionOwner at all...
---
 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 326f62ca7..c38c4b584 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -754,7 +754,7 @@ void nxagentClearClipboard(ClientPtr pClient, WindowPtr pWindow)
  * sel. sel is an atom on the real X server. If the index cannot be
  * determined it will return -1.
  */
-int nxagentFindLastSelectionOwnerIndex(XlibAtom sel)
+int nxagentFindRemoteSelectionIndex(XlibAtom sel)
 {
   for (int index = 0; index < nxagentMaxSelections; index++)
   {
@@ -892,7 +892,7 @@ void nxagentHandleSelectionClearFromXServer(XEvent *X)
     return;
   }
 
-  int index = nxagentFindLastSelectionOwnerIndex(X->xselectionclear.selection);
+  int index = nxagentFindRemoteSelectionIndex(X->xselectionclear.selection);
   if (index != -1)
   {
     if (IS_LOCAL_OWNER(index))
@@ -984,7 +984,7 @@ void nxagentHandleSelectionRequestFromXServer(XEvent *X)
   }
 
   /* The selection in this request is none we own. */
-  int index = nxagentFindLastSelectionOwnerIndex(X->xselectionrequest.selection);
+  int index = nxagentFindRemoteSelectionIndex(X->xselectionrequest.selection);
   if (index == -1)
   {
     #ifdef DEBUG
@@ -1851,7 +1851,7 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
   #endif
 
   /* determine the selection we are talking about here */
-  int index = nxagentFindLastSelectionOwnerIndex(E->selection);
+  int index = nxagentFindRemoteSelectionIndex(E->selection);
   if (index == -1)
   {
     #ifdef DEBUG
@@ -3070,7 +3070,7 @@ WindowPtr nxagentGetClipboardWindow(Atom property)
     return NULL;
   }
 
-  int index = nxagentFindLastSelectionOwnerIndex(serverLastRequestedSelection);
+  int index = nxagentFindRemoteSelectionIndex(serverLastRequestedSelection);
   if (index != -1 &&
           property == clientCutProperty &&
               lastSelectionOwner[index].windowPtr != NULL)

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