aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-12-17 22:56:25 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-01-05 23:36:02 +0100
commitd634f26bb54dea56830b16bdc7f555c08f59dc03 (patch)
tree7e9beab3935f3ddd8679f0641d8ee38bc02b28ae /nx-X11
parentd210c584c7505276e04018f206de5c0109f6ff63 (diff)
downloadnx-libs-d634f26bb54dea56830b16bdc7f555c08f59dc03.tar.gz
nx-libs-d634f26bb54dea56830b16bdc7f555c08f59dc03.tar.bz2
nx-libs-d634f26bb54dea56830b16bdc7f555c08f59dc03.zip
Clipboard.c: extend/reformat some comments
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index d488e92a9..adc02a17c 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -912,7 +912,8 @@ void nxagentRequestSelection(XEvent *X)
/*
* if one of our clients owns the selection we ask it to copy
* the selection to the clientCutProperty on nxagent's root
- * window on the real X server.
+ * window in the first step. We then later push that property's
+ * content to the real X server.
*/
if (IS_INTERNAL_OWNER(i) &&
(nxagentOption(Clipboard) == ClipboardServer ||
@@ -1036,10 +1037,10 @@ void nxagentTransferSelection(int resource)
int result;
PrintClientSelectionStage();
+
/*
- * Don't get data yet, just get size. We skip
- * this stage in current implementation and
- * go straight to the data.
+ * Don't get data yet, just get size. We skip this stage in
+ * current implementation and go straight to the data.
*/
nxagentLastClipboardClient = NXGetCollectPropertyResource(nxagentDisplay);
@@ -1323,9 +1324,9 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
* We reach here after a paste inside the nxagent, triggered by
* the XConvertSelection call in nxagentConvertSelection(). This
* means that data we need has been transferred to the
- * serverTransToAgentProperty of the serverWindow (our window on the real X
- * server). We now need to transfer it to the original requestor,
- * which is stored in the lastClient* variables.
+ * serverTransToAgentProperty of the serverWindow (our window on
+ * the real X server). We now need to transfer it to the original
+ * requestor, which is stored in the lastClient* variables.
*/
if ((lastClientStage == SelectionStageNone) && (X->xselection.property == serverTransToAgentProperty))
{
@@ -1365,7 +1366,10 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
int i = nxagentFindLastSelectionOwnerIndex(X->xselection.selection);
if (i < nxagentMaxSelections)
{
- /* if the last owner was an internal one */
+ /* if the last owner was an internal one, read the
+ * clientCutProperty and push the contents to the
+ * lastServerRequestor on the real X server.
+ */
if (IS_INTERNAL_OWNER(i) &&
lastSelectionOwner[i].windowPtr != NULL &&
X->xselection.property == serverTransFromAgentProperty)