summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-07-02 13:23:22 +0200
committerPierre Ossman <ossman@cendio.se>2018-07-02 13:23:22 +0200
commit5278291a828315372dd265b2d76f8dd9c75bd6d2 (patch)
tree1fc1fef2a774df161db2292263257c1483443336
parent5fbf4bd95342acfa9d2cfee81ed4f8d7c183278b (diff)
downloadrdesktop-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xwin.c b/xwin.c
index 04eeaad..278b664 100644
--- a/xwin.c
+++ b/xwin.c
@@ -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);