/[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 52 by n-ki, Fri Apr 26 08:22:39 2002 UTC revision 53 by matthewc, Tue May 28 11:48:55 2002 UTC
# Line 397  xwin_process_events() Line 397  xwin_process_events()
397          uint32 ev_time;          uint32 ev_time;
398          uint32 tmpmods;          uint32 tmpmods;
399    
         if (display == NULL)  
                 return;  
   
400          while (XCheckMaskEvent(display, ~0, &xkbevent.core))          while (XCheckMaskEvent(display, ~0, &xkbevent.core))
401          {          {
402                  ev_time = time(NULL);                  ev_time = time(NULL);
# Line 594  ui_select(int rdp_socket) Line 591  ui_select(int rdp_socket)
591          int n = (rdp_socket > x_socket) ? rdp_socket+1 : x_socket+1;          int n = (rdp_socket > x_socket) ? rdp_socket+1 : x_socket+1;
592          fd_set rfds;          fd_set rfds;
593    
         XFlush(display);  
   
594          FD_ZERO(&rfds);          FD_ZERO(&rfds);
595    
596          while (True)          while (True)
597          {          {
598                  FD_ZERO(&rfds);                  FD_ZERO(&rfds);
599                  FD_SET(rdp_socket, &rfds);                  FD_SET(rdp_socket, &rfds);
600                  FD_SET(x_socket, &rfds);                  if (display != NULL)
601                    {
602                            FD_SET(x_socket, &rfds);
603                            XFlush(display);
604                    }
605    
606                  switch (select(n, &rfds, NULL, NULL, NULL))                  switch (select(n, &rfds, NULL, NULL, NULL))
607                  {                  {

Legend:
Removed from v.52  
changed lines
  Added in v.53

  ViewVC Help
Powered by ViewVC 1.1.26