[X2Go-Commits] [nx-libs] 352/429: Clipboard.c: extend comments

git-admin at x2go.org git-admin at x2go.org
Mon Oct 18 09:37:05 CEST 2021


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit 9ec41748484c5e00460a93432141a179bc158fa2
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Mon Oct 26 23:18:55 2020 +0100

    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);
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list