aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-02-17 14:31:31 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-31 12:52:35 +0200
commitfc4c8a3acd1e3cc89682f80ca22510eb06839113 (patch)
tree33b4cc7d4d6f2a2134a4025dfdf3651a7b6824a1
parent6c751087e0aacb88f45d9dde8bf75ee3844d798d (diff)
downloadnx-libs-fc4c8a3acd1e3cc89682f80ca22510eb06839113.tar.gz
nx-libs-fc4c8a3acd1e3cc89682f80ca22510eb06839113.tar.bz2
nx-libs-fc4c8a3acd1e3cc89682f80ca22510eb06839113.zip
Clipboard.c: add description/warning for nxagentClearClipboard
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 430a85650..60080ab25 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -598,6 +598,12 @@ static Bool matchSelectionOwner(int index, ClientPtr pClient, WindowPtr pWindow)
(pWindow && lastSelectionOwner[index].windowPtr == pWindow));
}
+/*
+ * Clear relevant clipboard states if a client or window is closing.
+ * Attention: does not work properly when both client AND window
+ * are passed as setClientSelectionStage(None) will also clear
+ * the lastClientWindowPtr!
+ */
void nxagentClearClipboard(ClientPtr pClient, WindowPtr pWindow)
{
#ifdef DEBUG