Fixed mouse focus events after resetting video mode on Windows
authorSam Lantinga <slouken@libsdl.org>
Sun, 15 Feb 2004 22:50:28 +0000
changeset 829 77bca0665b69
parent 828 85ba077211bc
child 830 58b074c1bc59
Fixed mouse focus events after resetting video mode on Windows
src/video/wincommon/SDL_sysevents.c
--- a/src/video/wincommon/SDL_sysevents.c	Sun Feb 15 22:04:46 2004 +0000
+++ b/src/video/wincommon/SDL_sysevents.c	Sun Feb 15 22:50:28 2004 +0000
@@ -286,9 +286,9 @@
 				/* mouse has left the window */
 				/* or */
 				/* Elvis has left the building! */
-				in_window = FALSE;
 				posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS);
 			}
+			in_window = FALSE;
 		}
 		return(0);
 #endif /* WM_MOUSELEAVE */