| Summary: | SDL_GetAppState not returning correct values if ALT+TAB used in application | ||
|---|---|---|---|
| Product: | SDL | Reporter: | zicodxx |
| Component: | events | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | codepro |
| Version: | 1.2.14 | ||
| Hardware: | Other | ||
| OS: | Windows 7 | ||
| Bug Depends on: | |||
| Bug Blocks: | 1035 | ||
| Attachments: | Patch to fix this bug and bug 1035. | ||
|
Description
zicodxx
2010-07-28 12:59:27 UTC
This happens with the windib driver. Windows posts the WM_ACTIVATE WA_INACTIVE event with minimized==false when you Alt+Tab out of a fullscreen app. Responding to this event, wincommon/SDL_sysevents.c:WinMessage() calls ShowWindow(,SW_MINIMIZE) via SDL_RestoreDesktopMode, but another WM_ACTIVATE event is not posted in response to that. Whatever the case may be, WinMessage() should just treat a fullscreen app receiving WA_INACTIVE the same as a minimized app. Additionally, it's probably a good idea to clear SDL_APPMOUSEFOCUS at the same time, and that should take care of bug #1035. Created attachment 605 [details] Patch to fix this bug and bug 1035. Fixed, thanks! http://hg.libsdl.org/SDL/rev/676a54593bc4 |