CVS: rdesktop xwin.c,1.189,1.190
Michael Gernoth <[email protected]>
| Newsgroups | gmane.network.rdesktop.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/rdesktop/rdesktop In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23536 Modified Files: xwin.c Log Message: Handle RDP recv queue even in RDP send queue is full. Patch from James Cameron <[email protected]> This closes Debian Bug #246461. Index: xwin.c =================================================================== RCS file: /cvsroot/rdesktop/rdesktop/xwin.c,v retrieving revision 1.189 retrieving revision 1.190 diff -C2 -d -r1.189 -r1.190 *** xwin.c 23 Mar 2005 12:25:54 -0000 1.189 --- xwin.c 16 Apr 2005 11:57:19 -0000 1.190 *************** *** 1342,1346 **** } ! /* Process all events in Xlib queue Returns 0 after user quit, 1 otherwise */ static int --- 1342,1346 ---- } ! /* Process events in Xlib queue Returns 0 after user quit, 1 otherwise */ static int *************** *** 1354,1359 **** char str[256]; Status status; ! while (XPending(g_display) > 0) { XNextEvent(g_display, &xevent); --- 1354,1360 ---- char str[256]; Status status; + int events = 0; ! while ((XPending(g_display) > 0) && events++ < 20) { XNextEvent(g_display, &xevent); ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click