Need to make absolutely sure rdesktop ungrabs the keyboard - do it on
LeaveNotify as well. git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@252 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
07a3db4dc2
commit
c96a91367d
6
xwin.c
6
xwin.c
@ -345,7 +345,7 @@ ui_create_window(void)
|
||||
}
|
||||
|
||||
input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask |
|
||||
VisibilityChangeMask | FocusChangeMask;
|
||||
VisibilityChangeMask | FocusChangeMask | LeaveWindowMask;
|
||||
|
||||
if (sendmotion)
|
||||
input_mask |= PointerMotionMask;
|
||||
@ -535,6 +535,10 @@ xwin_process_events(void)
|
||||
XSetInputFocus(display, wnd, RevertToPointerRoot, CurrentTime);
|
||||
break;
|
||||
|
||||
case LeaveNotify:
|
||||
XUngrabKeyboard(display, CurrentTime);
|
||||
break;
|
||||
|
||||
case Expose:
|
||||
XCopyArea(display, backstore, wnd, gc,
|
||||
xevent.xexpose.x, xevent.xexpose.y,
|
||||
|
Loading…
Reference in New Issue
Block a user