aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index a3d8fb5c1..e77984472 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -2256,8 +2256,10 @@ Bool nxagentInitClipboard(WindowPtr pWin)
}
else
{
- nxagentClearSelectionOwner(nxagentPrimarySelection);
- nxagentClearSelectionOwner(nxagentClipboardSelection);
+ for (int i = 0; i < nxagentMaxSelections; i++)
+ {
+ nxagentClearSelectionOwner(i);
+ }
lastServerRequestor = None;