/[rdesktop]/sourceforge.net/branches/seamlessrdp-branch/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/branches/seamlessrdp-branch/rdesktop/xwin.c

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

revision 192 by matthewc, Tue Sep 24 07:59:14 2002 UTC revision 194 by matthewc, Tue Sep 24 12:25:21 2002 UTC
# Line 350  ui_create_window(void) Line 350  ui_create_window(void)
350          input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |          input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |
351                  StructureNotifyMask | FocusChangeMask;                  StructureNotifyMask | FocusChangeMask;
352    
         if (grab_keyboard)  
                 input_mask |= EnterWindowMask | LeaveWindowMask;  
353          if (sendmotion)          if (sendmotion)
354                  input_mask |= PointerMotionMask;                  input_mask |= PointerMotionMask;
355          if (ownbackstore)          if (ownbackstore)
# Line 518  xwin_process_events(void) Line 516  xwin_process_events(void)
516                                                 MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);                                                 MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
517                                  break;                                  break;
518    
519                          case EnterNotify:                          case FocusIn:
520                                    reset_modifier_keys();
521                                  if (grab_keyboard)                                  if (grab_keyboard)
522                                          XGrabKeyboard(display, wnd, True,                                          XGrabKeyboard(display, wnd, True,
523                                                        GrabModeAsync, GrabModeAsync, CurrentTime);                                                        GrabModeAsync, GrabModeAsync, CurrentTime);
524                                  break;                                  break;
525    
526                          case LeaveNotify:                          case FocusOut:
527                                  if (grab_keyboard)                                  if (grab_keyboard)
528                                          XUngrabKeyboard(display, CurrentTime);                                          XUngrabKeyboard(display, CurrentTime);
529                                  break;                                  break;
530    
                         case FocusIn:  
                                 reset_modifier_keys();  
                                 break;  
   
531                          case Expose:                          case Expose:
532                                  XCopyArea(display, backstore, wnd, gc,                                  XCopyArea(display, backstore, wnd, gc,
533                                            xevent.xexpose.x, xevent.xexpose.y,                                            xevent.xexpose.x, xevent.xexpose.y,

Legend:
Removed from v.192  
changed lines
  Added in v.194

  ViewVC Help
Powered by ViewVC 1.1.26