diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2021-06-16 20:47:55 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2021-06-20 20:12:51 +0200 |
commit | c775bedbcb6ead00548783b362de165b3f6968a2 (patch) | |
tree | c87c32292305c0f46d283d5499084017676574fa /nx-X11/programs/Xserver | |
parent | 62775ed673e4c3008b48dad2a4659271d5e02b02 (diff) | |
download | nx-libs-c775bedbcb6ead00548783b362de165b3f6968a2.tar.gz nx-libs-c775bedbcb6ead00548783b362de165b3f6968a2.tar.bz2 nx-libs-c775bedbcb6ead00548783b362de165b3f6968a2.zip |
Clipboard.c: rename nxagentFindLastSelectionOwnerIndex()
Did not refer to LastSelectionOwner at all...
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 10 |
1 files 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) |