diff options
author | Pierre Ossman <ossman@cendio.se> | 2018-07-02 13:23:22 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2018-07-02 13:23:22 +0200 |
commit | 5278291a828315372dd265b2d76f8dd9c75bd6d2 (patch) | |
tree | 1fc1fef2a774df161db2292263257c1483443336 | |
parent | 5fbf4bd95342acfa9d2cfee81ed4f8d7c183278b (diff) | |
download | rdesktop-5278291a828315372dd265b2d76f8dd9c75bd6d2.zip |
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.
-rw-r--r-- | xwin.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3186,7 +3186,9 @@ ui_select(int rdp_socket) 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; rdp_socket_has_data = process_fds(rdp_socket, timeout); |