From 1723afb64696c41bdecdbe5c3330eb5e378c24ab Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Tue, 2 Mar 2021 23:11:44 +0100 Subject: Clipboard.c: improve comments --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index d96a9946a..17b14f728 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -1517,7 +1517,7 @@ static void transferSelectionFromXServer(int index, int resource) fprintf(stderr, "%s: Getting property content from remote server.\n", __func__); #endif - /* get next free resouce index */ + /* get next free resource slot */ resource = NXGetCollectPropertyResource(nxagentDisplay); lastClients[index].resource = resource; @@ -1532,6 +1532,13 @@ static void transferSelectionFromXServer(int index, int resource) } else { + /* + * now initiate kind of an asynchronuos GetProperty() + * call. Once the property has been retrieved we will + * receive an NXCollectPropertyNotify event which will then + * be handled in + * nxagentCollectPropertyEventFromXServer(). + */ result = NXCollectProperty(nxagentDisplay, resource, serverWindow, -- cgit v1.2.3