SDL/src
Sam Lantinga 3739dda6bd Fixed minimized window detection when handling WM_WINDOWPOSCHANGED
When minimizing a window, we get this sequence of events:
WM_WINDOWPOSCHANGING
WM_GETMINMAXINFO
WM_NCCALCSIZE
WM_WINDOWPOSCHANGED - IsIconic() is true
WM_MOVE
WM_SIZE - SDL sees minimized state here

When restoring a window, we get this sequence of events:
WM_WINDOWPOSCHANGING
WM_GETMINMAXINFO
WM_NCCALCSIZE
WM_NCPAINT
WM_ERASEBKGND
WM_WINDOWPOSCHANGED - IsIconic() is false
WM_MOVE
WM_SIZE - SDL sees restored state here

On Windows 10 a minimized window has a non-empty client rect, so we were delivering a minimized size before SDL knows that the window is minimized, and then ignoring the restored size when handling the restore message.

The fix is to use IsIconic() which returns the correct window state when WM_WINDOWPOSCHANGED is actually delivered.
2022-08-19 17:40:30 -07:00
..
atomic Proposing exposing as public api the various arch dependent 2022-08-04 08:47:39 -07:00
audio Decrease audio thread priority when created 2022-08-14 08:13:17 -04:00
core core: linux: Don't cache the RealtimeKit D-Bus connection 2022-08-14 06:59:18 -07:00
cpuinfo Use proper header for OpenBSD PPC CPU detection 2022-06-27 11:01:34 -07:00
dynapi Added SDL_crc16() to be used in joystick GUIDs after 2.24.0 2022-08-11 09:53:25 -07:00
events Don't change mouse capture based on touch events 2022-08-11 16:13:14 -07:00
file Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
filesystem Fixed some Xcode warnings 2022-07-17 09:07:04 -07:00
haptic Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
hidapi Added libusb hack for Gamesir-G3w which needs the same adjustment as the Hori controllers 2022-08-12 18:21:00 -07:00
joystick Make sure we hold the joystick lock when disconnecting a HIDAPI joystick 2022-08-15 17:28:50 -07:00
libm Add some PS2 flags 2022-06-15 15:15:26 -07:00
loadso use SDL_InvalidParamError or SDL_assert instead of custom SDL_SetError 2022-01-28 20:40:19 -05:00
locale Vita: add SDL_GetPreferredLocales support 2022-03-29 15:02:21 -07:00
main Updated to version Updated to version 2.24.0 for release 2022-08-19 08:44:09 -07:00
misc Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
power Don't fail to get battery status if the upower refresh call fails 2022-02-04 14:02:44 -08:00
render opengl: Support NV12 textures on GPUs with only 2 texture units 2022-08-16 07:30:13 -07:00
sensor Removed problematic call to ISensor_SetEventSink() 2022-03-17 10:01:13 -07:00
stdlib Fixed potential uninitialized variable usage 2022-08-12 20:51:28 -07:00
test test: Fixed wrong arguments to SDL_SetWindowFullscreen. 2022-08-09 09:29:30 -04:00
thread Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
timer Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
video Fixed minimized window detection when handling WM_WINDOWPOSCHANGED 2022-08-19 17:40:30 -07:00
SDL.c Xbox GDKX support (#5869) 2022-07-01 13:59:14 -07:00
SDL_assert.c hide SDL_GenerateAssertionReport in case SDL_ASSERT_LEVEL is 0 2022-07-25 14:26:46 -07:00
SDL_assert_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_dataqueue.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_error.c Fix SIGSEV in SDL_error (After removing the limit on the size of the SDL error message) (see #5795) 2022-06-28 09:46:12 +02:00
SDL_error_c.h Removed the limit on the size of the SDL error message 2022-06-27 16:59:50 -07:00
SDL_guid.c Refactoring: move GUID operations out of Joystick 2022-06-04 17:22:13 -07:00
SDL_hints.c Added SDL_ResetHint() to reset a hint to the default value 2022-08-10 08:01:24 -07:00
SDL_hints_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_internal.h Fix enabling SDL_DYNAMIC_API in OpenWatcom builds 2022-05-19 20:11:10 +03:00
SDL_list.c Add SDL_list.c/h 2022-04-01 08:01:44 +02:00
SDL_list.h Add SDL_list.c/h 2022-04-01 08:01:44 +02:00
SDL_log.c android: Add missing entries to SDL_category_prefixes table. 2022-07-05 17:50:19 -07:00
SDL_log_c.h Added declaration of SDL_LogInit() and SDL_LogQuit() 2022-04-28 15:01:34 -07:00
SDL_utils.c Fixed declaration-after-statement warning 2022-07-18 07:31:23 -07:00
SDL_utils_c.h Fixed comment (thanks @pionere!) 2022-07-18 07:18:56 -07:00