diff -r 9d44e8794a9b src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Sun Jul 19 19:56:16 2015 -0300 +++ b/src/video/x11/SDL_x11events.c Thu Jul 23 01:33:26 2015 +0900 @@ -679,6 +679,9 @@ #endif SDL_SetMouseFocus(data->window); + SDL_GetMouse()->last_x = xevent.xcrossing.x; + SDL_GetMouse()->last_y = xevent.xcrossing.y; + if (!SDL_GetMouse()->relative_mode) { SDL_SendMouseMotion(data->window, 0, 0, xevent.xcrossing.x, xevent.xcrossing.y); }