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:
Matt Chapman 2002-09-15 11:53:50 +00:00
parent c113538377
commit 1bee46c41e

9
xwin.c
View File

@ -568,22 +568,21 @@ xwin_process_events()
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y);
break;
case FocusIn:
/* fall through */
case EnterNotify:
if (grab_keyboard)
XGrabKeyboard(display, wnd, True,
GrabModeAsync, GrabModeAsync, CurrentTime);
break;
case FocusOut:
xwin_reset_keys();
/* fall through */
case LeaveNotify:
if (grab_keyboard)
XUngrabKeyboard(display, CurrentTime);
break;
case FocusOut:
xwin_reset_keys();
break;
case Expose:
XCopyArea(display, backstore, wnd, gc,
xevent.xexpose.x, xevent.xexpose.y,