/[rdesktop]/sourceforge.net/trunk/rdesktop/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1459 by astrand, Wed Mar 26 16:44:55 2008 UTC revision 1461 by astrand, Wed Mar 26 17:16:32 2008 UTC
# Line 566  sw_wait_configurenotify(Window wnd, unsi Line 566  sw_wait_configurenotify(Window wnd, unsi
566  {  {
567          XEvent xevent;          XEvent xevent;
568          sw_configurenotify_context context;          sw_configurenotify_context context;
569          time_t start;          struct timeval now;
570            struct timeval nextsecond;
571          RD_BOOL got = False;          RD_BOOL got = False;
572    
573          context.window = wnd;          context.window = wnd;
574          context.serial = serial;          context.serial = serial;
575          start = time(NULL);  
576            gettimeofday(&nextsecond, NULL);
577            nextsecond.tv_sec += 1;
578    
579          do          do
580          {          {
# Line 581  sw_wait_configurenotify(Window wnd, unsi Line 584  sw_wait_configurenotify(Window wnd, unsi
584                          break;                          break;
585                  }                  }
586                  usleep(100000);                  usleep(100000);
587                    gettimeofday(&now, NULL);
588          }          }
589          while (time(NULL) - start < 2);          while (timercmp(&now, &nextsecond, <));
590    
591          if (!got)          if (!got)
592          {          {

Legend:
Removed from v.1459  
changed lines
  Added in v.1461

  ViewVC Help
Powered by ViewVC 1.1.26