aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-11-10 22:32:47 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-11-18 22:46:04 +0100
commita8d7b0c8c68d95e465fc05a1f49cfff4e969a0f5 (patch)
tree0b730383f77bf20028c2e2662553e9f341f0ab7e /nx-X11/programs/Xserver/hw
parent5ec4d7b8ae0c50ef5f7463f4d622597ab9fb37bc (diff)
downloadnx-libs-a8d7b0c8c68d95e465fc05a1f49cfff4e969a0f5.tar.gz
nx-libs-a8d7b0c8c68d95e465fc05a1f49cfff4e969a0f5.tar.bz2
nx-libs-a8d7b0c8c68d95e465fc05a1f49cfff4e969a0f5.zip
NXdispatch.c: use defined value CurrentTime instead of 0
also add another comment.
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
index 5df008bbb..cd57182a1 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
@@ -215,14 +215,16 @@ InitSelections(void)
NumCurrentSelections += nxagentMaxSelections;
CurrentSelections = newsels;
+ /* Note: these are the same values that will be set on a SelectionClear event */
+
CurrentSelections[nxagentPrimarySelection].selection = XA_PRIMARY;
- CurrentSelections[nxagentPrimarySelection].lastTimeChanged = ClientTimeToServerTime(0);
+ CurrentSelections[nxagentPrimarySelection].lastTimeChanged = ClientTimeToServerTime(CurrentTime);
CurrentSelections[nxagentPrimarySelection].window = screenInfo.screens[0]->root->drawable.id;
CurrentSelections[nxagentPrimarySelection].pWin = NULL;
CurrentSelections[nxagentPrimarySelection].client = NullClient;
CurrentSelections[nxagentClipboardSelection].selection = MakeAtom("CLIPBOARD", 9, 1);
- CurrentSelections[nxagentClipboardSelection].lastTimeChanged = ClientTimeToServerTime(0);
+ CurrentSelections[nxagentClipboardSelection].lastTimeChanged = ClientTimeToServerTime(CurrentTime);
CurrentSelections[nxagentClipboardSelection].window = screenInfo.screens[0]->root->drawable.id;
CurrentSelections[nxagentClipboardSelection].pWin = NULL;
CurrentSelections[nxagentClipboardSelection].client = NullClient;