Sam Lantinga
d4cda51057
tray: renamed SDL_HasNoActiveTrays() to SDL_HasActiveTrays()
2025-01-19 18:53:55 -08:00
Sam Lantinga
a974888aad
tray: fixed icon colors on Windows
2025-01-19 18:53:55 -08:00
Sam Lantinga
7570ab106d
tray: improved error checking
...
Also clean up any existing trays when the program quits
Fixes https://github.com/libsdl-org/SDL/issues/11893
2025-01-19 18:53:55 -08:00
Sam Lantinga
3afd1e7eaa
windows: use WIN_UTF8ToStringW() for dialog titles
2025-01-19 18:53:55 -08:00
Semphris
43b54b3d72
Fix Windows dialog folder titles
...
Same fix as in cf946e32ba , which was not done for the folder implementation.
2025-01-19 08:19:40 -08:00
Ryan C. Gordon
32965b4bf1
pen: Send virtual mouse motion without a button press when a pen is hovering.
...
Fixes #11470 .
2025-01-18 21:51:03 -05:00
Ryan C. Gordon
5da9d4ecc2
cocoa: Slightly better display hotplugging detection.
...
Fixes #12016 .
2025-01-18 17:02:37 -05:00
Semphris
19f42094bb
Fix Windows fie dialog args freeing
2025-01-18 13:53:56 -08:00
Semphris
721fc7de0b
Correct spacing of pointers ('a* b;' -> 'a *b;')
2025-01-18 13:53:56 -08:00
Semphris
cd269730eb
Fix Windows dialog memory management
2025-01-18 13:53:56 -08:00
Sam Lantinga
049a8f0e52
Use SDL_calloc() instead of SDL_malloc()
...
This automatically initializes memory to zero so you don't have uninitialized memory bugs
2025-01-18 13:41:23 -08:00
Semphris
354d2c390c
Initialize invalid parent_{tray,entry} to NULL
...
The API states that the related functions must return NULL if the function
called (get the parent tray, or get the parent entry) is invalid for this
menu. Initialising the fields to NULL makes that API correct for Windows.
2025-01-18 16:17:16 -05:00
Semphris
b79ada6aa5
Windows trays: Fix ParentEntry & Enabling
...
The test/testtray program would crash on Windows when adding any item and then removing it, because a submenu's parent_entry field was not set.
Additionally, I noticed that some extraneous code copied from the {G,S}etTrayEntryChecked made {G,S}etTrayEntryEnabled work only for checkboxes, which is not the desired behavior.
Both issues were fixed in this commit.
2025-01-18 16:17:16 -05:00
Sam Lantinga
ba95c54f99
macOS: get the correct display name on macOS 10.15+
2025-01-18 09:42:37 -08:00
Frank Praznik
42e0fb10f8
wayland: Set the mouse state before calling the hit test callback
...
Update the mouse state before entering the hit test, in case the global state is queried, or the system menu opened, while in the client hit testing callback.
2025-01-18 12:10:25 -05:00
Sam Lantinga
cd0db8d35e
Added Linux evdev mappings for the Wireless HORIPAD For Steam
2025-01-18 08:09:25 -08:00
Ryan C. Gordon
1d7a681e4d
Revert "emscripten: resizable windows take whole page, resize with browser window."
...
This reverts commit d317fc9c08 .
This has some issues, we'll revisit it for 3.4.0.
Reference Issue #11949 .
2025-01-18 10:15:43 -05:00
Sam Lantinga
c7d1fd90ea
Added support for the 8BitDo Ultimate 2C Wireless in Bluetooth mode
...
Closes https://github.com/libsdl-org/SDL/pull/11415
2025-01-18 07:06:46 -08:00
Sam Lantinga
923123a527
emscripten: Let SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT accept "#none"
...
This is used to say "don't even try to listen for keypresses," for apps that
are managing this outside of SDL.
Fixes #10292 .
2025-01-18 06:19:27 -08:00
Sam Lantinga
c603a9c94a
Moved flag documentation
2025-01-18 06:16:10 -08:00
Sam Lantinga
90b7174a7d
Respect the SDL_BORDERLESS_RESIZABLE_STYLE hint, but default it to true.
2025-01-18 06:07:06 -08:00
Ryan C. Gordon
6a72d32d41
emscripten: Let SDL_HINT_EMSCRIPTEN_KEYBOARD_ELEMENT accept "".
...
This is used to say "don't even try to listen for keypresses," for apps that
are managing this outside of SDL.
Fixes #10292 .
2025-01-18 08:43:55 -05:00
Ryan C. Gordon
f3a39074b0
windows: use WS_THICKFRAME style on borderless windows.
...
This is apparently necessary in newer Windows releases (Windows 10 and later?)
to allow hit-testing to resize the window.
Fixes #8406 .
2025-01-18 08:38:49 -05:00
Ryan C. Gordon
010f27dc70
storage: enumerate and glob on storage can accept a NULL path.
...
This will be treated as the root of the storage tree.
2025-01-17 20:11:50 -05:00
Ryan C. Gordon
a6a8598b98
storage: deal with paths with Windows '\\' path separators appended.
...
Reference Issue #11986 .
2025-01-17 20:11:50 -05:00
Sam Lantinga
7c6adc1ca7
gpu renderer: removed unused sampler slots
...
There used to be 3 scale modes, now there are only 2.
2025-01-17 16:31:40 -08:00
Ryan C. Gordon
d317fc9c08
emscripten: resizable windows take whole page, resize with browser window.
...
This also implements the SetWindowResizable interface, so this can be now
toggled after window creation, too.
Fixes #11949 .
2025-01-17 17:59:28 -05:00
Sam Lantinga
59ea078ee2
x11: check to see if displays moved when connected/disconnected
...
Fixes https://github.com/libsdl-org/SDL/issues/9738
2025-01-17 13:14:16 -08:00
Frank Praznik
1848ce680b
win32: Use the window coordinates to get the monitor when de-minimizing a maximized window
...
MonitorFromWindow can fail if called on a window being de-minimized, so fall back to using the monitor from the last window coordinates if initial retrieval fails.
2025-01-17 15:46:18 -05:00
Sam Lantinga
656c519cca
Fixed warning C6313: Incorrect operator. Use an equality test to check for zero-valued flags.
2025-01-17 12:08:58 -08:00
ROllerozxa
cdc5483cf9
Vita: Fix off-by-one error for synthetic mouse events
2025-01-16 11:58:01 -08:00
Sam Lantinga
eb168e410c
Updated to version 3.1.11 for development
2025-01-16 11:41:28 -08:00
Frank Praznik
b96bb152c2
wayland: Don't redundantly set the border state when showing a window
...
They are now set before the initial configure.
2025-01-16 13:54:39 -05:00
Frank Praznik
5a564a718d
wayland: Add a dummy function for the libdecor dismiss popup callback
...
This was never added, and we've been lucky that it's never called as libdecor doesn't check the function pointer for null before doing so.
2025-01-16 13:48:16 -05:00
Frank Praznik
9f6eeb1095
wayland: Set the border state before the initial configure
...
This allows the toplevel bounds to be set correctly on borderless windows.
2025-01-16 13:40:31 -05:00
Ethan Lee
326ce9bb8d
gpu: D3D12 buildfix for Xbox
2025-01-16 12:19:59 -05:00
Ethan Lee
c95b842b30
video: Xbox does not use CreateIconFromSurface
2025-01-16 12:19:46 -05:00
Frank Praznik
7ee2ab3830
wayland: Fix return value check from int-to-bool conversion
2025-01-16 11:52:16 -05:00
Sam Lantinga
1dd8fadca2
Updated to version 3.1.10 for the release candidate
2025-01-16 08:33:18 -08:00
Ryan C. Gordon
3ffb1a8cbd
storage: generic title storage allows override paths without '/' appended.
...
Fixes #11299 .
2025-01-16 08:19:28 -05:00
Ryan C. Gordon
874c07f8de
storage: Don't allow "." and ".." paths, enforce '/' dir separators.
...
Also clarify what characters are valid for Storage paths in the category docs.
Fixes #11079 .
Fixes #11370 .
Fixes #11369 .
2025-01-16 08:19:28 -05:00
Ryan C. Gordon
eb793dede7
filesystem: SDL_GetCurrentDirectory() should add a path separator at the end.
2025-01-16 08:19:28 -05:00
Ryan C. Gordon
87e1b0eb89
filesystem: SDL_EnumerateDirectory() gives dirs with path seperators appended.
...
Fixes #11065 .
Fixes #11427 .
2025-01-16 08:19:28 -05:00
Ramez Ragaa
e98ee9bb04
Adjust testgl.c to test gl_release_behavior
2025-01-16 08:19:05 -05:00
Ryan C. Gordon
3424ec948c
video: SDL_GL_GetAttribute gets correct SDL_GL_CONTEXT_RELEASE_BEHAVIOR value.
...
Original patch was from @ramezgerges (thanks!).
Fixes #11697 .
2025-01-16 08:19:05 -05:00
Ryan C. Gordon
4d63a2b882
io: Renamed src/file to src/io
...
Fixes #11980 .
2025-01-16 08:18:40 -05:00
Sam Lantinga
ea642fe9ff
cocoa: clear mouse focus based on NSEventTypeMouseExited events ( #11991 )
...
We can't directly set the mouse focus since we may get spammed by entered/exited events,
but we can process the current focus later in the mouseMoved handler in line with the
mouse motion event sequence.
Fixes https://github.com/libsdl-org/SDL/issues/8188
2025-01-15 23:34:20 -08:00
Sam Lantinga
2c7b7d1d33
Keep the lifecycle observer active while there are windows active
...
Fixes https://github.com/libsdl-org/SDL/issues/11627
2025-01-15 17:10:49 -08:00
cosmonaut
355f69ebfe
GPU: Ensure thread safety of Vulkan resource creation
2025-01-15 13:45:43 -08:00
Frank Praznik
c9d602307c
cocoa: Only process hit tests on left clicks
...
Otherwise, right-click events over drag areas will be eaten.
2025-01-15 15:44:01 -05:00