SDL/test
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
..
android android+test: testcamera needs CAMERA permissions 2024-05-16 16:43:53 +02:00
emscripten ctest/emscripten: make audio and video driver configurable 2024-08-21 20:14:55 +02:00
n3ds
testgpu GPU: Remove D3D11 shaders from testgpu_spinning_cube 2024-11-12 17:32:25 -08:00
win32 sdlprocdump: fix minidump filename 2024-08-30 14:18:03 +02:00
CMakeLists.txt asyncio: Added async i/o APIs. 2024-12-03 17:32:20 -05:00
COPYING
LICENSE.txt examples/audio/04-multiple-streams: Remove drag-and-drop support. 2024-12-10 23:10:43 -05:00
audiofile.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
checkkeys.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
childprocess.c Make sure stdio handles are in blocking mode 2024-10-14 22:10:49 -07:00
gamepad_axis.bmp
gamepad_axis.h
gamepad_axis_arrow.bmp
gamepad_axis_arrow.h
gamepad_back.bmp
gamepad_back.h
gamepad_battery.bmp Separate joystick power state into battery status and percentage 2024-04-01 13:59:00 -07:00
gamepad_battery.h Fixed crashes when a window has NULL driverdata 2024-04-15 10:15:10 -07:00
gamepad_battery_unknown.bmp
gamepad_battery_unknown.h
gamepad_battery_wired.bmp
gamepad_battery_wired.h
gamepad_button.bmp
gamepad_button.h
gamepad_button_background.bmp
gamepad_button_background.h
gamepad_button_small.bmp
gamepad_button_small.h
gamepad_face_abxy.bmp
gamepad_face_abxy.h
gamepad_face_bayx.bmp
gamepad_face_bayx.h
gamepad_face_sony.bmp
gamepad_face_sony.h
gamepad_front.bmp
gamepad_front.h
gamepad_touchpad.bmp
gamepad_touchpad.h
gamepadutils.c testcontroller: fixed incorrect usage of memcpy() 2024-10-24 18:12:01 -07:00
gamepadutils.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
glass.bmp Re-added a simplified version of SDL_SetWindowShape() 2024-02-09 16:04:46 -08:00
glass.h Re-added a simplified version of SDL_SetWindowShape() 2024-02-09 16:04:46 -08:00
icon.bmp
icon.h testspriteminimal: make standalone by embedding icon.bmp 2023-09-19 17:58:25 +02:00
icon2x.bmp Added support for high-DPI cursors and icons 2024-08-01 13:48:28 -07:00
logaudiodev.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
loopwave.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
main.cpp
moose.dat
physaudiodev.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
picture.xbm
pretest.c Removed temporary memory from the API 2024-07-26 20:59:14 -07:00
relative_mode.markdown Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
sample.bmp
sample.wav
soundboard.bmp testaudio: Fixed soundboard icon, which had a colorkey issue. 2023-08-03 21:35:38 -04:00
soundboard_levels.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
speaker.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
sword.wav examples/audio/04-multiple-streams: Remove drag-and-drop support. 2024-12-10 23:10:43 -05:00
template.test.in build: Fix testprocess invocation during "as-installed" tests 2024-09-25 14:48:26 -07:00
testasyncio.c asyncio: Allow file closes to request a flush/fsyncdata. 2024-12-03 17:32:20 -05:00
testatomic.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudio.c Removed unnecessary const-qualifiers in src and test files 2024-10-03 17:39:08 -04:00
testaudiohotplug.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudioinfo.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testaudiorecording.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testaudiostreamdynamicresample.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testautomation.c SDL_test: move argument parsing into SDL_test 2024-09-06 03:06:40 +02:00
testautomation_audio.c Remove casts from typed pointer to void * for printf %p in test projects 2024-09-24 14:40:32 +03:00
testautomation_blit.c Adding void to empty function prototype parenthesis 2024-09-11 19:44:52 -07:00
testautomation_clipboard.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_events.c Added SDL_IsMainThread() and SDL_RunOnMainThread() 2024-12-05 13:53:51 -08:00
testautomation_guid.c SDL_test: use SDLCALL calling convention 2024-09-06 14:19:05 +02:00
testautomation_hints.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_images.c test: Make blit_testExampleApplicationRender work on big endian 2024-10-06 08:27:58 -07:00
testautomation_images.h Added SDL_BlitSurfaceTiled() 2024-07-20 18:21:19 -07:00
testautomation_intrinsics.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_iostream.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_joystick.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_keyboard.c testautomation keyboard: use `space` instead of `a` 2024-11-08 07:01:50 -08:00
testautomation_log.c Added SDL_LogTrace() 2024-09-17 02:04:54 -07:00
testautomation_main.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_math.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_mouse.c test: Fix mouse focus test on X11 2024-10-10 11:37:45 -04:00
testautomation_pixels.c Validate that pixel formats have the correct attributes 2024-11-17 11:58:57 -08:00
testautomation_platform.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_properties.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_rect.c Fixed Cohen-Sutherland out code computation for float line intersection 2024-10-13 13:04:59 -07:00
testautomation_render.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testautomation_sdltest.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_stdlib.c test/testautomation_stdlib.c: fix gcc warning on 32 bit 2024-10-10 21:10:24 +03:00
testautomation_subsystems.c Verify that the subsystems were successfully initialized 2024-09-15 12:04:10 -07:00
testautomation_suites.h pen: Rework public API. 2024-08-09 22:09:23 -04:00
testautomation_surface.c A zero source rect is valid for blitting 2024-09-25 22:36:55 -07:00
testautomation_time.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_timer.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testautomation_video.c video: Drop size and position requests for windows in a fixed size/position state 2024-12-17 10:45:40 -05:00
testbounds.c Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
testcamera.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testcolorspace.c testcolorspace.c: Fix unreachable code warning 2024-09-27 15:22:24 -07:00
testcontroller.c testcontroller: update the controller name when it's opened as a gamepad 2024-11-05 11:43:28 -08:00
testcustomcursor.c test: Fix testcustomcursor on high-DPI displays 2024-10-01 12:40:17 -04:00
testdialog.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testdisplayinfo.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testdraw.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testdrawchessboard.c testdrawchessboard: Allow using the standard render API 2024-10-12 16:07:16 -07:00
testdropfile.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testerror.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testevdev.c Make sure we call SDL_Quit() before SDLTest_CommonDestroyState() 2024-07-28 08:05:31 -07:00
testffmpeg.c Minor cleanup 2024-10-31 15:44:41 -07:00
testffmpeg_vulkan.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testffmpeg_vulkan.h testffmpeg_vulkan: fix -Wincompatible-pointer-types warning 2024-03-22 11:05:13 -07:00
testfile.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testfilesystem.c filesystem: Added SDL_GetCurrentDirectory(). 2024-11-27 23:42:11 -05:00
testgeometry.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testgl.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testgles2.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles2_sdf.c test: Change LoadContext() return value type from int to bool 2024-11-05 14:22:57 -08:00
testgles2_sdf_img_normal.bmp
testgles2_sdf_img_sdf.bmp
testgpu_simple_clear.c GPU: Add swapchain dimension out params (#11003) 2024-09-30 10:23:19 -07:00
testgpu_spinning_cube.c GPU: Remove D3D11 shaders from testgpu_spinning_cube 2024-11-12 17:32:25 -08:00
testhaptic.c Removed SDL_INIT_TIMER 2024-09-17 08:53:27 -07:00
testhittesting.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testhotplug.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testiconv.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testime.c Moved the SDL_ttf IME demo to showfont in the SDL_ttf project 2024-10-06 00:24:01 -07:00
testintersections.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testkeys.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testloadso.c loadso: library handles are now `SDL_SharedObject*` instead of `void*`. 2024-10-01 12:16:10 -04:00
testlocale.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testlock.c Renamed atomic functions to match SDL 3.0 naming convention 2024-09-17 08:53:27 -07:00
testmanymouse.c Rename SDL_BUTTON() to SDL_BUTTON_MASK() 2024-10-04 09:13:59 -07:00
testmessage.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testmodal.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testmouse.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testmultiaudio.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testnative.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testnative.h Include SDL_build_config.h without a 'build_config/' prefix 2024-08-23 00:51:35 +00:00
testnativecocoa.m
testnativew32.c Make testnative (on win32) UNICODE compatible 2024-06-20 15:40:32 +02:00
testnativewayland.c Renamed SDL_Get/SetProperty() to SDL_Get/SetPointerProperty() 2024-07-12 10:41:02 -07:00
testnativex11.c Updated copyright for 2024 2024-01-01 13:15:26 -08:00
testoffscreen.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testoverlay.c tests: Fix tests when run with the --high-pixel-density flag 2024-09-19 12:54:13 -04:00
testpen.c main: SDL_AppQuit() now reports the result value. 2024-09-29 23:24:04 -04:00
testplatform.c testplatform: make sure bool is 1 byte 2024-09-18 10:01:15 -07:00
testpopup.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testpower.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testprocess.c Make sure stdio handles are in blocking mode 2024-10-14 22:10:49 -07:00
testqsort.c SDL_strtoll(), SDL_strtoull(), SDL_lltoa(), and SDL_ulltoa() use long long values 2024-09-09 15:46:26 -07:00
testrelative.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testrendercopyex.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testrendertarget.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testresample.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testrumble.c Removed SDL_INIT_TIMER 2024-09-17 08:53:27 -07:00
testrwlock.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testscale.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsem.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsensor.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testshader.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testshape.c Don't overwrite the SDL_IOFromConstMem() error in testshape 2024-10-14 20:07:03 -07:00
testsprite.c Fixed crashes handling D3D11/12 device lost in testsprite 2024-10-21 00:29:18 -07:00
testspriteminimal.c testspriteminimal: only quit when escape is pressed 2024-10-23 10:51:14 -07:00
testspritesurface.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
teststreaming.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testsurround.c Simplify get_channel_name() so it's easier for people to read and understand 2024-10-22 18:19:30 -07:00
testthread.c Rename SDL_SetThreadPriority() to SDL_SetCurrentThreadPriority() 2024-10-04 08:57:03 -07:00
testtime.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testtimer.c Improved implementation of SDL_DelayPrecise() (thanks @nightmareci!) 2024-10-11 21:18:31 -07:00
testurl.c Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
testutils.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testutils.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testver.c Improve logging performance and make log priorities thread-safe 2024-09-16 13:09:17 -07:00
testviewport.c Made texture size and format public in the API 2024-10-01 08:10:04 -07:00
testvulkan.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testwaylandcustom.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testwm.c Enable the SDL_HINT_MOUSE_DOUBLE_CLICK_TIME and SDL_HINT_MOUSE_DOUBLE_CLICK_RADIUS hints on macOS 2024-12-06 17:07:16 -08:00
testyuv.bmp
testyuv.c Add `void` to `run_colorspace_test()` function prototype 2024-10-16 11:16:42 -07:00
testyuv_cvt.c Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
testyuv_cvt.h Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
torturethread.c Renamed atomic functions to match SDL 3.0 naming convention 2024-09-17 08:53:27 -07:00
trashcan.bmp test: Added testaudio 2023-08-02 15:02:32 -04:00
unifont-15.1.05-license.txt Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
unifont-15.1.05.hex Updated unifont to version 15.1.05 2024-06-27 17:43:03 -07:00
utf8.txt