Commit a336ec9d authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #849

This was a silly bug. :)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404104
parent e9bac2e9
......@@ -347,7 +347,7 @@ static void DIB_GenerateMouseMotionEvent(_THIS)
SetCursorPos(center.x, center.y);
posted = SDL_PrivateMouseMotion(0, 1, (Sint16)mouse.x, (Sint16)mouse.y);
}
} else if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
} else {
ScreenToClient(SDL_Window, &mouse);
#ifdef SDL_VIDEO_DRIVER_GAPI
if (SDL_VideoSurface && this->hidden->gapiInfo)
......@@ -368,7 +368,7 @@ void DIB_PumpEvents(_THIS)
}
}
if ( SDL_GetAppState() & SDL_APPINPUTFOCUS ) {
if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
DIB_GenerateMouseMotionEvent( this );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment