SDL/src/video
Sam Lantinga ffab139646 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:28:31 -07:00
..
android keyboard: Remove no-op calls to SDL_SetKeymap() 2022-07-31 15:46:35 -07:00
arm ARM: NEON assembly optimization for SDL_FillRect 2019-10-24 21:17:52 -04:00
cocoa cocoa/uikit: Use VK_EXT_metal_surface in Vulkan_GetInstanceExtensions 2022-08-19 09:48:22 -07:00
directfb keyboard: Remove no-op calls to SDL_SetKeymap() 2022-07-31 15:46:35 -07:00
dummy video: dummy: Support evdev psuedo-device with no video. 2022-08-08 08:31:04 -07:00
emscripten video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
haiku video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
khronos Update SDL's copy of the EGL headers from Khronos 2021-08-25 10:50:21 -10:00
kmsdrm kmsdrm: enable vrr on displays that support it 2022-08-19 09:45:03 -07:00
nacl video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
ngage video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
offscreen video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
os2 video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
pandora video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
ps2 Implement create windows method 2022-08-04 15:41:43 -07:00
psp Remove unused internal header SDL_sysevents.h 2022-07-01 07:39:48 -07:00
qnx QNX: use SDL_malloc 2021-11-22 08:38:46 -08:00
raspberry Remove unused internal header SDL_sysevents.h 2022-07-01 07:39:48 -07:00
riscos video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
uikit cocoa/uikit: Use VK_EXT_metal_surface in Vulkan_GetInstanceExtensions 2022-08-19 09:48:22 -07:00
vita video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
vivante video: Only check major version in SDL_GetWindowWMInfo 2022-05-24 08:56:23 -07:00
wayland Add null termination to Wayland_data_source_get_data() if requested 2022-08-18 19:05:55 -07:00
windows Fixed minimized window detection when handling WM_WINDOWPOSCHANGED 2022-08-19 17:28:31 -07:00
winrt video: removed unused devindex argument from bootstrap's create method. 2022-07-26 00:19:52 -04:00
x11 Fixed interactions between mouse capture and grab on X11 2022-08-17 14:26:34 -07:00
yuv2rgb Add optimiztion function with LSX in LoongArch 2022-06-06 08:49:09 -07:00
SDL_blit.c Fixed bug #2199: make SDL_blit_slow handles SDL_PIXELFORMAT_ARGB2101010, storing as RGBA 2022-03-15 17:46:12 +01:00
SDL_blit.h fixed SDL_BlitMap typedef redefinition errors 2022-06-22 01:37:00 +03:00
SDL_blit_0.c Fixed bug #2140: basic support to convert 16 colors palette PIXELFORMAT_INDEX4, to allow conversion to SDL_Texture 2022-02-10 13:44:59 +01:00
SDL_blit_1.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_A.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_auto.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_auto.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_blit_copy.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_blit_copy.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_blit_N.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_blit_slow.c SDL_blit_slow: remove one nested 'if()' because of ARGB2101010 handling 2022-03-16 18:08:20 +01:00
SDL_blit_slow.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_bmp.c Fixed loading 32-bit BMP files 2022-03-31 16:15:51 -07:00
SDL_clipboard.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_egl.c egl: Add support for SDL_GL_FLOATBUFFERS. 2022-08-09 15:41:02 -04:00
SDL_egl_c.h Rename variables in SDL_egl.c to be more intuitive 2022-06-11 14:20:18 -07:00
SDL_fillrect.c Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00
SDL_pixels.c Handle SDL_PIXELFORMAT_EXTERNAL_OES in SDL_GetPixelFormatName() 2022-08-16 07:29:45 -07:00
SDL_pixels_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_rect.c SDL_Rect: Added floating point versions of all the rectangle APIs. 2022-03-19 10:35:24 -04:00
SDL_rect_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_rect_impl.h SDL_Rect: Added floating point versions of all the rectangle APIs. 2022-03-19 10:35:24 -04:00
SDL_RLEaccel.c Don't use SDL_SIMDFree() if the pixels haven't been allocated with SDL_SIMDAlloc() 2022-05-11 08:40:17 -07:00
SDL_RLEaccel_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_shape.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_shape_internals.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_stretch.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_surface.c video: Note unused SDL_surface creation parameters for removal in SDL 3 2022-06-13 11:53:53 -07:00
SDL_sysvideo.h video: Add video device quirk flags and apply them to the video subsystem 2022-08-15 11:16:20 -07:00
SDL_video.c video: Add video device quirk flags and apply them to the video subsystem 2022-08-15 11:16:20 -07:00
SDL_vulkan_internal.h cocoa/uikit: Support VK_EXT_metal_surface 2022-08-19 09:48:22 -07:00
SDL_vulkan_utils.c Updated copyright for 2022 2022-01-03 09:40:21 -08:00
SDL_yuv.c Add optimiztion function with LSX in LoongArch 2022-06-06 08:49:09 -07:00
SDL_yuv_c.h Updated copyright for 2022 2022-01-03 09:40:21 -08:00
sdlgenblit.pl Add clang-format on/off comments where necessary. 2022-05-19 01:31:29 -07:00