aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-10-26 23:18:55 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:51 +0200
commit9ec41748484c5e00460a93432141a179bc158fa2 (patch)
tree02c30660a6abc6e5f1ea28cbf40fc9acbd2d61de /nx-X11
parent533f08ddb9748c20bd736f356c3a7fe38f53a113 (diff)
downloadnx-libs-9ec41748484c5e00460a93432141a179bc158fa2.tar.gz
nx-libs-9ec41748484c5e00460a93432141a179bc158fa2.tar.bz2
nx-libs-9ec41748484c5e00460a93432141a179bc158fa2.zip
Clipboard.c: extend comments
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c11
1 files 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);