/[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 207 by matthewc, Thu Sep 26 14:26:46 2002 UTC revision 208 by matthewc, Fri Sep 27 01:04:34 2002 UTC
# Line 345  ui_create_window(void) Line 345  ui_create_window(void)
345          }          }
346    
347          input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |          input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |
348                  StructureNotifyMask | FocusChangeMask;                  VisibilityChangeMask | FocusChangeMask;
349    
350          if (sendmotion)          if (sendmotion)
351                  input_mask |= PointerMotionMask;                  input_mask |= PointerMotionMask;
# Line 365  ui_create_window(void) Line 365  ui_create_window(void)
365          XSelectInput(display, wnd, input_mask);          XSelectInput(display, wnd, input_mask);
366          XMapWindow(display, wnd);          XMapWindow(display, wnd);
367    
368          /* wait for MapNotify */          /* wait for VisibilityNotify */
369          do          do
370          {          {
371                  XMaskEvent(display, StructureNotifyMask, &xevent);                  XMaskEvent(display, VisibilityChangeMask, &xevent);
372          }          }
373          while (xevent.type != MapNotify);          while (xevent.type != VisibilityNotify);
374    
375          if (fullscreen)          if (fullscreen)
376                  XSetInputFocus(display, wnd, RevertToPointerRoot, CurrentTime);                  XSetInputFocus(display, wnd, RevertToPointerRoot, CurrentTime);

Legend:
Removed from v.207  
changed lines
  Added in v.208

  ViewVC Help
Powered by ViewVC 1.1.26