Possible fix for "flashing title bar" problem (don't grab in response
to FocusIn/FocusOut - seems to cause an event loop). git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@157 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
c113538377
commit
1bee46c41e
9
xwin.c
9
xwin.c
@ -568,22 +568,21 @@ xwin_process_events()
|
|||||||
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
|
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FocusIn:
|
|
||||||
/* fall through */
|
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
if (grab_keyboard)
|
if (grab_keyboard)
|
||||||
XGrabKeyboard(display, wnd, True,
|
XGrabKeyboard(display, wnd, True,
|
||||||
GrabModeAsync, GrabModeAsync, CurrentTime);
|
GrabModeAsync, GrabModeAsync, CurrentTime);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FocusOut:
|
|
||||||
xwin_reset_keys();
|
|
||||||
/* fall through */
|
|
||||||
case LeaveNotify:
|
case LeaveNotify:
|
||||||
if (grab_keyboard)
|
if (grab_keyboard)
|
||||||
XUngrabKeyboard(display, CurrentTime);
|
XUngrabKeyboard(display, CurrentTime);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case FocusOut:
|
||||||
|
xwin_reset_keys();
|
||||||
|
break;
|
||||||
|
|
||||||
case Expose:
|
case Expose:
|
||||||
XCopyArea(display, backstore, wnd, gc,
|
XCopyArea(display, backstore, wnd, gc,
|
||||||
xevent.xexpose.x, xevent.xexpose.y,
|
xevent.xexpose.x, xevent.xexpose.y,
|
||||||
|
Loading…
Reference in New Issue
Block a user