aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Screen.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-05-05 18:56:35 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-08-16 11:51:39 +0200
commit62573abf00fb6fd6fcc642088a570400d88197d0 (patch)
tree8f82999da66759ac849a6744397300ec98cf3ee2 /nx-X11/programs/Xserver/hw/nxagent/Screen.c
parent7f4b50deb5a41bc88227ce925ecbb3fe713705c2 (diff)
downloadnx-libs-62573abf00fb6fd6fcc642088a570400d88197d0.tar.gz
nx-libs-62573abf00fb6fd6fcc642088a570400d88197d0.tar.bz2
nx-libs-62573abf00fb6fd6fcc642088a570400d88197d0.zip
nxagent: simplify nxagentWaitEvents()
no more need to pass down a struct, we now only pass the milliseconds and let the function do the rest.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Screen.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index d1dc37dc2..5cdb50f90 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -365,7 +365,6 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after
for (int i = 0; i < 100 && nxagentWMIsRunning; i++)
{
- struct timeval timeout;
XEvent e;
#ifdef TEST
@@ -379,10 +378,7 @@ FIXME: We'll check for ReparentNotify and LeaveNotify events after
XSync(nxagentDisplay, 0);
- timeout.tv_sec = 0;
- timeout.tv_usec = 50 * 1000;
-
- nxagentWaitEvents(nxagentDisplay, &timeout);
+ nxagentWaitEvents(nxagentDisplay, 50);
}
}
else