mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
windows: Fix stale zoom/iconic state in WM_WINDOWPOSCHANGED handler
- IsIconic/IsZoomed must be checked after sending SDL_EVENT_WINDOW_SHOWN as that may trigger window operations if any are pending from when the window was hidden. e.g. the window may be shown, which triggers SDL_MaximizeWindow and a new WM_WINDOWPOSCHANGED where SDL_EVENT_WINDOW_MAXIMIZED is sent, then control returns to the original WM_WINDOWPOSCHANGED which would not think the window is zoomed and send SDL_EVENT_WINDOW_RESTORED.
This commit is contained in:
parent
14ae45c2b8
commit
c2ed58db7b
2 changed files with 7 additions and 2 deletions
0
test/msdf_font.csv
Executable file → Normal file
0
test/msdf_font.csv
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue