Make sure to break out of inner loop when pending resize

is triggered. This will make a reconnect happen as fast as
possible and prevent waiting for any xwin inputs or data
on rdp channel.



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1846 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Henrik Andersson 2015-02-11 14:33:57 +00:00
parent 0db1aeac1f
commit 378b10f296

5
xwin.c
View File

@ -2649,7 +2649,7 @@ xwin_process_events(void)
return 1;
}
/* Returns 0 after user quit, 1 otherwise */
/* Returns 0 after user quit or pending resize, 1 otherwise */
int
ui_select(int rdp_socket)
{
@ -2666,6 +2666,9 @@ ui_select(int rdp_socket)
/* User quit */
return 0;
if (g_pending_resize)
return 0;
if (g_seamless_active)
sw_check_timers();