From c97278db23c4903fc01ec32b36a3806a1aa634e5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 17 Oct 2009 16:49:23 +0000 Subject: [PATCH] Fixed bug #849 This was a silly bug. :) --HG-- branch : SDL-1.2 --- src/video/windib/SDL_dibevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/windib/SDL_dibevents.c b/src/video/windib/SDL_dibevents.c index e94c4db5a..592f2dabc 100644 --- a/src/video/windib/SDL_dibevents.c +++ b/src/video/windib/SDL_dibevents.c @@ -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 ); } }