changeset 829:77bca0665b69

Fixed mouse focus events after resetting video mode on Windows
author Sam Lantinga <slouken@libsdl.org>
date Sun, 15 Feb 2004 22:50:28 +0000
parents 85ba077211bc
children 58b074c1bc59
files src/video/wincommon/SDL_sysevents.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */