SDL/include/SDL3
Frank Praznik eda0261c4e video: Drop size and position requests for windows in a fixed size/position state
It is not uncommon for clients to redundantly set the window size and position, either as a holdover from an SDL 1 port, when this was required, due to any window state change triggering a universal update function that sets all window state, even if unnecessary (e.g. always calling SDL_SetWindowSize(), even if the window is fullscreen), or due to the use of compatability layers. Historically, these clients expect that their behavior won't override the base window state, which is an assumption that the windowing changes in SDL 3 broke by caching size and position changes that can't be applied immediately.

This change drops size and position requests when the window is in the maximized and fullscreen states (fullscreen-desktop windows will be repositioned, but the non-fullscreen floating position will not be overwritten), which is behavior more in line with existing client assumptions, and should ease the porting process, as well as prevent annoying bugs when older software is run via sdl2-compat.

In the process of making these changes, pending window state has been moved to separate variables in the SDL_Window struct, as this fixes bugs regarding fullscreen display selection and centering windows immediately after resize on asynchronous platforms, which had issues due to pending state possibly being overwritten.
2024-12-17 10:45:40 -05:00
..
SDL.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_assert.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_asyncio.h Sync SDL3 wiki -> header 2024-12-05 08:29:19 +00:00
SDL_atomic.h Fix outdated references to SDL symbols in docs. Fixes #11503 2024-11-22 15:52:31 -05:00
SDL_audio.h Sync SDL3 wiki -> header 2024-12-02 00:37:15 +00:00
SDL_begin_code.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_bits.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_blendmode.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_camera.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_clipboard.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_close_code.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_copying.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_cpuinfo.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_dialog.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_egl.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_endian.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_error.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_events.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_filesystem.h Sync SDL3 wiki -> header 2024-11-28 04:42:44 +00:00
SDL_gamepad.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_gpu.h Sync SDL3 wiki -> header 2024-12-11 19:17:12 +00:00
SDL_guid.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_haptic.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_hidapi.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_hints.h Sync SDL3 wiki -> header 2024-12-16 17:20:27 +00:00
SDL_init.h Sync SDL3 wiki -> header 2024-12-06 00:49:29 +00:00
SDL_intrin.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_iostream.h Sync SDL3 wiki -> header 2024-11-14 01:12:18 +00:00
SDL_joystick.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_keyboard.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_keycode.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_loadso.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_locale.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_log.h Sync SDL3 wiki -> header 2024-11-28 04:36:33 +00:00
SDL_main.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_main_impl.h ngage: Remove Nokia N-Gage support. 2024-12-11 13:29:43 -05:00
SDL_messagebox.h Fix outdated references to SDL symbols in docs. Fixes #11503 2024-11-22 15:52:31 -05:00
SDL_metal.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_misc.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_mouse.h Document that video and input functions should be called on the main thread. 2024-12-05 13:53:51 -08:00
SDL_mutex.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_oldnames.h video: Change SDL_GLattr to SDL_GLAttr. 2024-10-23 18:50:52 -04:00
SDL_opengl.h Add macro guards for OpenGL <=1.3 function prototypes 2024-10-12 11:21:07 -04:00
SDL_opengl_glext.h Renamed Gpu to GPU 2024-08-29 17:33:52 -07:00
SDL_opengles.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_opengles2.h wikiheaders: bridge wiki Category docs to the headers! 2024-05-16 11:48:23 -04:00
SDL_opengles2_gl2.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2ext.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_gl2platform.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_opengles2_khrplatform.h Switch header convention from #include "SDL.h" to #include <SDL3/SDLh> 2022-11-26 22:15:18 -08:00
SDL_pen.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_pixels.h Validate that pixel formats have the correct attributes 2024-11-17 11:58:57 -08:00
SDL_platform.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_platform_defines.h ngage: Remove Nokia N-Gage support. 2024-12-11 13:29:43 -05:00
SDL_power.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_process.h Sync SDL3 wiki -> header 2024-11-22 20:53:04 +00:00
SDL_properties.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_rect.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_render.h Sync SDL3 wiki -> header 2024-12-06 22:17:01 +00:00
SDL_revision.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_scancode.h Sync SDL3 wiki -> header 2024-12-16 06:13:48 +00:00
SDL_sensor.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_stdinc.h wikiheaders: optionally generate a Quick Reference page. 2024-12-10 11:25:15 -05:00
SDL_storage.h Sync SDL3 wiki -> header 2024-10-27 21:42:48 +00:00
SDL_surface.h Sync SDL3 wiki -> header 2024-12-07 00:20:38 +00:00
SDL_system.h Sync SDL3 wiki -> header 2024-11-28 04:36:33 +00:00
SDL_test.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_test_assert.h SDL_test: use SDLCALL calling convention 2024-09-06 14:19:05 +02:00
SDL_test_common.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_test_compare.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_test_crc32.h Updated check for stdbool.h 2024-09-28 16:55:09 -07:00
SDL_test_font.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_test_fuzzer.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
SDL_test_harness.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_test_log.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_test_md5.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_test_memory.h Heavy work on improving category documentation. 2024-12-16 01:10:37 -05:00
SDL_thread.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_time.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_timer.h Sync SDL3 wiki -> header 2024-11-28 04:36:33 +00:00
SDL_touch.h fnsince: update \since policy for documentation. 2024-10-23 12:22:43 -04:00
SDL_version.h Updated to version 3.1.7 for development 2024-11-01 15:49:31 -07:00
SDL_video.h video: Drop size and position requests for windows in a fixed size/position state 2024-12-17 10:45:40 -05:00
SDL_vulkan.h SDL_vulkan.h: undefine VK_DEFINE_HANDLER and VK_DEFINE_NON_DISPATCHABLE_HANDLE 2024-10-29 20:30:10 +03:00