From 2ea8e8e5d769cb7fc653c2666618eeefcefa3ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C3=85strand?= Date: Thu, 19 Sep 2013 14:45:22 +0000 Subject: [PATCH] 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 --- xwin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xwin.c b/xwin.c index 45b3205..1637848 100644 --- a/xwin.c +++ b/xwin.c @@ -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) {