Drain X event queue without any delay

A 100 ms delay between iterations was still too large for many cases,
so try to clear the event queue as fast as possible.
This commit is contained in:
Pierre Ossman 2018-07-02 13:23:22 +02:00
parent 5fbf4bd953
commit 5278291a82

4
xwin.c
View File

@ -3186,7 +3186,9 @@ ui_select(int rdp_socket)
timeout = 60000; timeout = 60000;
if (XPending(g_display) > 0 || g_pending_resize == True) if (XPending(g_display) > 0)
timeout = 0;
else if (g_pending_resize == True)
timeout = 100; timeout = 100;
rdp_socket_has_data = process_fds(rdp_socket, timeout); rdp_socket_has_data = process_fds(rdp_socket, timeout);