Frank Praznik
11323abf57
wayland: Set the minimized flag on windows until cleared by a focus event
...
The behavior when minimizing a window on Wayland is compositor dependent and clients are not informed when windows enter or leave the minimized state, however we can assume that, when receiving a minimize request from the application, the minimized window should set and keep the minimized status flag until the window regains focus.
This is required when attaching a renderer context to a minimized window, as the renderer creation process destroys and recreates the target window, and without retaining the minimized flag, the recreated window will lose the minimized state.
2023-03-24 16:17:16 -04:00
Frank Praznik
6bb48b4fe9
wayland: Unref the libdecor window when hiding
...
Hiding the decorations while not unreferencing the frame was a workaround for an internal libdecor use-after-free bug that was fixed some time ago. Revert to unreferencing the window when hiding to ensure that it is properly destroyed.
Reverts dd2e318
2023-03-24 16:17:16 -04:00
Sam Lantinga
26f511a8f4
Add SWP_NOACTIVATE to SetWindowPos flags passed in WIN_SetWindowAlwaysOnTop
2023-03-24 10:39:56 -07:00
Sylvain
693558a894
testautomation_video: fix memory leak
2023-03-24 09:52:05 +01:00
Sylvain
8d3d4e523e
Fix sdltest_randomAsciiStringWithMaximumLength() where it requests a string a size 0
...
seen with: ./testautomation --seed MILAFAP2AKVP3V4G --filter sdltest_randomAsciiStringWithMaximumLength
2023-03-24 09:52:05 +01:00
Sylvain
3ccfd361cb
Fix video_getSetWindowPosition() that fail when checking events,
...
because testautomation_events.c() didn't finish to poll all events before
2023-03-24 09:52:05 +01:00
Sylvain
5976b79c1c
testautomation: create no window, so that testautomation_mouse.c::mouse_getMouseFocus() pass
...
(more precisely, the last test, when the window is destroyed, focus window should report null)
2023-03-24 09:52:05 +01:00
Sylvain
f30a182de2
Fix video_getSetWindowGrab(): need to raise the window, and wait for focus gained
2023-03-24 09:52:05 +01:00
Sylvain
d4d26e0ddb
testautomation_video: if SDL_SetWindowSize/Position isn't honored, we should check there is an event
...
x11: send the events if various occasions
2023-03-24 09:52:05 +01:00
Sylvain
4b1378fe8e
X11: fix size/position (test video_setWindowCenteredOnDisplay)
...
this fix x11 backend to correctly pass video_setWindowCenteredOnDisplay()
- get border values early (eg status bar)
- wait for size/position change to get valid values
Fix set topleft is client rendering area
2023-03-24 09:52:05 +01:00
Anonymous Maarten
749f3ebd14
Fix arguments of SDL_BlitCopyMMX
2023-03-24 02:18:06 +01:00
Ryan C. Gordon
586004e52a
wikiheaders.pl: Manpages shouldn't use .BI sections, it looks bad.
...
Reference Issue #7514 .
2023-03-21 22:23:06 -07:00
Ryan C. Gordon
1b81ececd3
wikiheaders.pl: Fixed uninitialized value warning when run without arguments.
2023-03-21 21:57:12 -07:00
Ozkan Sezer
0ef85873a2
fixed uninitialized warnings from gcc7, gcc8, and gcc9.
2023-03-22 01:56:20 +03:00
SDL Wiki Bot
6760d54737
Sync SDL3 wiki -> header
2023-03-21 20:04:18 +00:00
Ozkan Sezer
f5a92092e1
SDL_intrin.h: workaround clang-cl failures when avx isn't enabled.
2023-03-21 23:03:02 +03:00
Ozkan Sezer
5d4d11f92f
SDL_intrin.h: fixed typo in AVX2 checks.
2023-03-21 23:03:02 +03:00
Anonymous Maarten
c30903882b
cmake+tests: include SDL_build_config.h in select tests + add include paths
2023-03-21 23:03:02 +03:00
Anonymous Maarten
0bd5ce13db
cmake: add underscore in SSE4_1 and SSE4_2 options
2023-03-21 23:03:02 +03:00
Ozkan Sezer
8eb673d43d
cmake: fix typo from previous commit.
2023-03-21 23:03:02 +03:00
Ozkan Sezer
262b13431d
testautomation_intrinsics.c (sse2): change _mm_store_pd to _mm_storeu_pd
...
fixes segmentation faults
2023-03-21 23:03:02 +03:00
Ozkan Sezer
7a54d363cf
testautomation_intrinsics.c: correct call to check SSE4.1 presence.
2023-03-21 23:03:02 +03:00
Ozkan Sezer
6c9780720b
cmake: added configuration options for AVX2, AVX512F, SSE4.1, and SSE4.2
...
adjusted SDL_intrin.h and testautomation_intrinsics.c accordingly.
2023-03-21 23:03:02 +03:00
Ozkan Sezer
feec1305c6
cmake: remove duplicate setting of HAVE_ASSEMBLY to TRUE
2023-03-21 23:03:02 +03:00
Ozkan Sezer
260bb1c661
SDL_intrin.h: fixed disabler macro name for SSE4.1
2023-03-21 23:03:02 +03:00
Anonymous Maarten
5775d5e112
Add intrinsics test automation
2023-03-21 23:03:02 +03:00
Anonymous Maarten
cb46cbe684
include: include intrinsics headers for RDTSC SSE4.1 and SSE4.2
2023-03-21 23:03:02 +03:00
Anonymous Maarten
905b892314
cmake: simplify mmx/sse/sse2/avx compiler support detection
2023-03-21 23:03:02 +03:00
Ozkan Sezer
2e4ce78b33
tidy-up SDL_yuv.c
2023-03-21 23:03:02 +03:00
Ozkan Sezer
1dbe6447ee
SDL_intrin.h: simplified MSVC preprocessor conditions.
...
Also removed definings of gcc-specific macros for MSVC.
2023-03-21 23:03:02 +03:00
Anonymous Maarten
6a9e2495f0
docs: add general information on how to build optimized binaries
2023-03-21 23:03:02 +03:00
Anonymous Maarten
b5b9ddb205
SDL_intrin.h: define SDL_<simd>_INTRINSICS in user-visible header
2023-03-21 23:03:02 +03:00
Ozkan Sezer
41c693dc25
build fix for non-x86 targets.
2023-03-21 23:03:02 +03:00
Ozkan Sezer
79513afc19
build fixes to SDL_yuv.c
2023-03-21 23:03:02 +03:00
Ozkan Sezer
69de6964e5
use target attributes of gcc / clang for SIMD code.
2023-03-21 23:03:02 +03:00
Anonymous Maarten
cd7a3f8af5
cmake: generate and install man pages
2023-03-21 02:19:19 +01:00
Anonymous Maarten
70edd54835
sdlwiki: SDL3 advises users to include through 'SDL3/SDL.h'
2023-03-21 02:19:19 +01:00
Anonymous Maarten
77b8edb5ad
wikiheaders.pl: add --manpath argument
2023-03-21 02:19:19 +01:00
Anonymous Maarten
81ca9d61d6
cmake+test: add more automated tests + use properties
2023-03-21 02:19:19 +01:00
Anonymous Maarten
115460a930
torturethread: sleep a bit in SubThreadFunc to avoid starvation
...
testtorture, built by MinGW from msys2, got blocked indefinitely.
2023-03-21 02:19:19 +01:00
Anonymous Maarten
6a9c692bb9
testsem: don't re-parse positional argument twice
2023-03-21 02:19:19 +01:00
Anonymous Maarten
abfc2a01ca
ci: disable parallel building for ps2
...
The ps2 builds were flaky.
https://github.com/ps2dev/ps2dev/issues/67
2023-03-21 02:19:19 +01:00
Anonymous Maarten
38219e08d9
ci: increase memory size of vmactions workflow
...
By default, the VM gets 1024MiB. https://github.com/vmactions/freebsd-vm/issues/28 suggests to increase it.
2023-03-21 02:19:19 +01:00
Anonymous Maarten
773aad14f8
cmake: Fix building without libsamplerate library
...
On Fedora, the headers for 32-bit and 64-bit are shared.
When building a 32-bit library, CMake found the header (that was installed
for the 64-bit libsamplerate development package). Because no 32-bit libsamplerate
library was installed, linking failed. (SDL_LIBSAMPLERATE_DYNAMIC was set to FALSE
because CMake could not find a library)
2023-03-20 05:34:41 +01:00
Ivan Mogilko
f360965db6
Fixed SDL_RenderSetVSync does not update flags if simulated vsync is on
...
This lets the user to correctly detect current vsync state by reading SDL_RendererInfo.
Also fixes SetVSync's return value check (it may be positive for error too).
(cherry picked from commit d78072fcd46943288a6007cd6f4ab1f98f446b1d)
2023-03-18 11:44:45 -07:00
Sam Lantinga
08d5c1386e
Fixed always on top windows on Windows
...
Also cleaned up some SetWindowPos() calls and made it explicit when we change the topmost flag
2023-03-17 10:37:21 -07:00
Anonymous Maarten
4a6528e3f0
testprograms: parse arguments using SDLTest_CommonState
2023-03-17 17:54:16 +01:00
Anonymous Maarten
8bea41f737
testthread: parse arguments using SDLTest_CommonState + add arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
64b739bc1e
testlock: parse arguments using SDLTest_CommonState + extra arguments
2023-03-17 17:54:16 +01:00
Anonymous Maarten
4d86a83fa9
testver: don't allow any arguments
2023-03-17 17:54:16 +01:00