From 9ec41748484c5e00460a93432141a179bc158fa2 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 26 Oct 2020 23:18:55 +0100 Subject: Clipboard.c: extend comments --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index dd8b049db..28d56b758 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -1857,14 +1857,19 @@ static void setSelectionOwnerOnXServer(Selection *pSelection) /* * inform the real X server that our serverWindow is the * clipboard owner. + * https://www.freedesktop.org/wiki/ClipboardManager/ states + * "In order to support peers who use the XFIXES extension to + * watch clipboard ownership changes, clipboard owners should + * reacquire the clipboard whenever the content or metadata (e.g + * the list of supported targets) changes." */ XSetSelectionOwner(nxagentDisplay, remSelAtoms[index], serverWindow, CurrentTime); /* * The real owner window (inside nxagent) is stored in - * lastSelectionOwner.window. lastSelectionOwner.windowPtr - * points to the struct that contains all information about the - * owner window. + * lastSelectionOwner[index].window. + * lastSelectionOwner[index].windowPtr points to the struct that + * contains all information about the owner window. */ storeSelectionOwnerData(index, pSelection); -- cgit v1.2.3