Commit a6c57d6f authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Clipboard.c: improve readability by using an if clause

parent 249e4321
...@@ -1562,8 +1562,9 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection, ...@@ -1562,8 +1562,9 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
lastClientSelection = selection; lastClientSelection = selection;
lastClientTarget = target; lastClientTarget = target;
lastClientReqTime = (GetTimeInMillis() - lastClientReqTime) > 5000 ? /* if the last client request time is more than 5s ago update it. Why? */
GetTimeInMillis() : lastClientReqTime; if ((GetTimeInMillis() - lastClientReqTime) > 5000)
lastClientReqTime = GetTimeInMillis();
if (selection == MakeAtom("CLIPBOARD", 9, 0)) if (selection == MakeAtom("CLIPBOARD", 9, 0))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment