aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-06-11 00:15:20 +0200
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:51 +0200
commit9fb5949b017b50e55a93dcd200cafffb7602ef21 (patch)
treecf32900ad10b7eeffcc5bcba72141e3459902c99 /nx-X11/programs
parent55af71edcf66556869f5f2b8c843818874399551 (diff)
downloadnx-libs-9fb5949b017b50e55a93dcd200cafffb7602ef21.tar.gz
nx-libs-9fb5949b017b50e55a93dcd200cafffb7602ef21.tar.bz2
nx-libs-9fb5949b017b50e55a93dcd200cafffb7602ef21.zip
Clipboard.c: remove old code
This block has been unused for a long time now. The comment describing how to reach that path does not make sense anymore because primary and clipboard are not sharing variables anymore. So drop it.
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 3a210ac5f..503f42add 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1257,37 +1257,6 @@ void nxagentHandleSelectionRequestFromXServer(XEvent *X)
*/
serverLastRequestedSelection = X->xselectionrequest.selection;
-#if 0
- if (lastClients[index].windowPtr != NULL && IS_LOCAL_OWNER(index))
- {
- /*
- * Request the real X server to transfer the selection content
- * to the NX_CUT_BUFFER_SERVER property of the serverWindow.
- * We reach here as follows:
- * - mark someting in the nx session
- * -> nxagent claims ownership of PRIMARY on real X server
- * - at the same time paste _clipboard_ to the client (now) owning primary
- * ->vcxsrv will ask for primary contents to store them to Windows clipboard
- * - vcxsrv request is for _primary_ and takes this path as the _clipboard_ transfer
- * has set lastClients[index].windowPtr
- */
- XDeleteProperty(nxagentDisplay, serverWindow, serverTransToAgentProperty);
- XConvertSelection(nxagentDisplay, CurrentSelections[index].selection,
- X->xselectionrequest.target, serverTransToAgentProperty,
- serverWindow, lastClients[index].time);
-
- NXFlushDisplay(nxagentDisplay, NXFlushLink);
-
- #ifdef DEBUG
- fprintf(stderr, "%s: Sent XConvertSelection: selection [%d][%s] target [%ld][%s] property [%ld][%s] window [0x%lx] time [%u] .\n", __func__,
- CurrentSelections[index].selection, NameForRemoteAtom(CurrentSelections[index].selection)),
- X->xselectionrequest.target, NameForRemoteAtom(X->xselectionrequest.target),
- serverTransToAgentProperty, NameForRemoteAtom(serverTransToAgentProperty),
- serverWindow, lastClients[index].time);
- #endif
- }
- else
-#endif
{
if (!(nxagentOption(Clipboard) == ClipboardServer ||
nxagentOption(Clipboard) == ClipboardBoth))