diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-08-05 17:57:37 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-09-29 17:44:08 +0200 |
commit | a6c57d6ff5f6ce86074e3b499a0bf255741a76e7 (patch) | |
tree | 26b354192632bcc197a228f4bb7759ce5e0ac108 /nx-X11/programs | |
parent | 249e4321c67e9c3d9a4b6b0ee4ea80ef9ea7f63b (diff) | |
download | nx-libs-a6c57d6ff5f6ce86074e3b499a0bf255741a76e7.tar.gz nx-libs-a6c57d6ff5f6ce86074e3b499a0bf255741a76e7.tar.bz2 nx-libs-a6c57d6ff5f6ce86074e3b499a0bf255741a76e7.zip |
Clipboard.c: improve readability by using an if clause
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 9ec160650..c11da0f96 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -1562,8 +1562,9 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection, lastClientSelection = selection; lastClientTarget = target; - lastClientReqTime = (GetTimeInMillis() - lastClientReqTime) > 5000 ? - GetTimeInMillis() : lastClientReqTime; + /* if the last client request time is more than 5s ago update it. Why? */ + if ((GetTimeInMillis() - lastClientReqTime) > 5000) + lastClientReqTime = GetTimeInMillis(); if (selection == MakeAtom("CLIPBOARD", 9, 0)) { |