aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Window.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-27 08:26:59 +0200
commit17495dd6aedd27fb8a083fc841a7f297e6a8da8f (patch)
tree28163ffc76609a7fb26c395ce711fa53d552ea62 /nx-X11/programs/Xserver/hw/nxagent/Window.c
parent1d32e5368ab8d94a100144f741b00f4506e6eeff (diff)
downloadnx-libs-17495dd6aedd27fb8a083fc841a7f297e6a8da8f.tar.gz
nx-libs-17495dd6aedd27fb8a083fc841a7f297e6a8da8f.tar.bz2
nx-libs-17495dd6aedd27fb8a083fc841a7f297e6a8da8f.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/Window.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Window.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Window.c b/nx-X11/programs/Xserver/hw/nxagent/Window.c
index 357c6efbd..fc59973bd 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -850,7 +850,6 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
* Change to fullscreen mode.
*/
- struct timeval timeout;
int i;
XEvent e;
@@ -875,10 +874,7 @@ void nxagentSwitchAllScreens(ScreenPtr pScreen, Bool switchOn)
XSync(nxagentDisplay, 0);
- timeout.tv_sec = 0;
- timeout.tv_usec = 50 * 1000;
-
- nxagentWaitEvents(nxagentDisplay, &timeout);
+ nxagentWaitEvents(nxagentDisplay, 50);
}
if (i < 100)