Commit 634d4fc8 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Clipboard.c: clear all selections in nxagentInitClipboard

The new code effectively does the same the old one did. But if we change the number of selections the new code will still work correctly while the old one would not.
parent 20120205
......@@ -2256,8 +2256,10 @@ Bool nxagentInitClipboard(WindowPtr pWin)
}
else
{
nxagentClearSelectionOwner(nxagentPrimarySelection);
nxagentClearSelectionOwner(nxagentClipboardSelection);
for (int i = 0; i < nxagentMaxSelections; i++)
{
nxagentClearSelectionOwner(i);
}
lastServerRequestor = None;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment