When using SeamlessRDP with broken window managers, we hade a timeout

of 1 second for ConfigureNotify. Lower this to 0.5 seconds. 



git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1747 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2013-09-19 14:45:22 +00:00
parent 7945532bfe
commit 2ea8e8e5d7

8
xwin.c
View File

@ -574,14 +574,14 @@ sw_wait_configurenotify(Window wnd, unsigned long serial)
XEvent xevent;
sw_configurenotify_context context;
struct timeval now;
struct timeval nextsecond;
struct timeval future;
RD_BOOL got = False;
context.window = wnd;
context.serial = serial;
gettimeofday(&nextsecond, NULL);
nextsecond.tv_sec += 1;
gettimeofday(&future, NULL);
future.tv_usec += 500000;
do
{
@ -593,7 +593,7 @@ sw_wait_configurenotify(Window wnd, unsigned long serial)
usleep(100000);
gettimeofday(&now, NULL);
}
while (timercmp(&now, &nextsecond, <));
while (timercmp(&now, &future, <));
if (!got)
{