--- sourceforge.net/trunk/rdesktop/xwin.c 2002/09/15 11:39:16 157 +++ sourceforge.net/trunk/rdesktop/xwin.c 2002/09/15 11:53:50 158 @@ -568,22 +568,21 @@ 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,