src/video/windib/SDL_dibevents.c
branchSDL-1.2
changeset 4350 4988a4f76a09
parent 4291 6cc2b35ac610
child 4384 6800e2560310
     1.1 --- a/src/video/windib/SDL_dibevents.c	Sat Oct 17 07:05:33 2009 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Sat Oct 17 16:49:23 2009 +0000
     1.3 @@ -347,7 +347,7 @@
     1.4  			SetCursorPos(center.x, center.y);
     1.5  			posted = SDL_PrivateMouseMotion(0, 1, (Sint16)mouse.x, (Sint16)mouse.y);
     1.6  		}
     1.7 -	} else if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
     1.8 +	} else {
     1.9  		ScreenToClient(SDL_Window, &mouse);
    1.10  #ifdef SDL_VIDEO_DRIVER_GAPI
    1.11         if (SDL_VideoSurface && this->hidden->gapiInfo)
    1.12 @@ -368,7 +368,7 @@
    1.13  		}
    1.14  	}
    1.15  
    1.16 -	if ( SDL_GetAppState() & SDL_APPINPUTFOCUS ) {
    1.17 +	if ( SDL_GetAppState() & SDL_APPMOUSEFOCUS ) {
    1.18  		DIB_GenerateMouseMotionEvent( this );
    1.19  	}
    1.20  }