Handle RDP recv queue even in RDP send queue is full.
Patch from James Cameron <james.cameron@hp.com> This closes Debian Bug #246461. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@886 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
87d8eefba0
commit
0929decadd
5
xwin.c
5
xwin.c
@ -1341,7 +1341,7 @@ xwin_toggle_fullscreen(void)
|
||||
}
|
||||
}
|
||||
|
||||
/* Process all events in Xlib queue
|
||||
/* Process events in Xlib queue
|
||||
Returns 0 after user quit, 1 otherwise */
|
||||
static int
|
||||
xwin_process_events(void)
|
||||
@ -1353,8 +1353,9 @@ xwin_process_events(void)
|
||||
key_translation tr;
|
||||
char str[256];
|
||||
Status status;
|
||||
int events = 0;
|
||||
|
||||
while (XPending(g_display) > 0)
|
||||
while ((XPending(g_display) > 0) && events++ < 20)
|
||||
{
|
||||
XNextEvent(g_display, &xevent);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user