Sam Lantinga
6b665066f0
Added SIMD blitters for 8888 -> 8888 format conversion
...
(cherry picked from commit e20e27e1fb
)
2025-03-30 21:29:48 -07:00
Frank Praznik
519011f271
x11: Popup positions after constraining are in the window-relative space, not global
...
(cherry picked from commit 210b317d8d
)
2025-03-29 11:11:24 -07:00
Andrei Tsurkan
5c224a3221
fix missing AVFoundation in CMakeLists.txt
...
(cherry picked from commit f7a89d19c6
)
2025-03-29 08:45:26 -07:00
Sam Lantinga
4b8c38e7ba
Temporarily disable DwmFlush()
...
For some reason this locks up the Windows compositor when called by Steam. I'm disabling it for now until we understand why and whether this can cause issues for other applications as well.
(cherry picked from commit a23f97483f
)
2025-03-28 20:32:28 -07:00
Cameron Gutman
16f6c1058c
gamepad: Fix inability to disable SDL_EVENT_GAMEPAD_UPDATE_COMPLETE events
...
(cherry picked from commit 712c76fdc1
)
2025-03-28 17:19:49 -05:00
Green Sky
7939309520
video: fix surface leak when duplicating mjpeg
...
(cherry picked from commit eb918af3dc
)
2025-03-28 13:19:29 -07:00
Sam Lantinga
cec6073085
Updated link to PSP Hello World
...
(cherry picked from commit 304cb742881c5da76d41f28181624f8c2aafa05a)
2025-03-27 12:19:51 -07:00
Frank Praznik
a9f121f3f7
cocoa: Clear pending state on fullscreen switch failures
...
The window failing to enter/exit fullscreen notifications don't necessarily imply anything about the actual state of the window. On failure, dump pending events, and don't presume anything about the current window state, as it will be handled by subsequent enter/leave notifications.
(cherry picked from commit 09fff161e9
)
2025-03-27 11:59:43 -04:00
Frank Praznik
361218ce15
cocoa: Re-add sync timeout
...
This should never happen, but it's a failsafe against future bugs or odd configurations
(cherry picked from commit 05d23cae73
)
2025-03-27 11:59:09 -04:00
Ryan C. Gordon
04dcfada00
audio: Allow PipeWire and PulseAudio streams to migrate to other sinks.
...
SDL still manages hotplug and default device management here, but if a user
wants to use an external tool, such as `pactl move-sink-input`, to put it
onto a different device, they probably know what they're doing and we
shouldn't stop them.
If this turns out to have some unexpected consequences, though, we can revisit
the change.
Fixes https://github.com/libsdl-org/sdl2-compat/issues/367
(cherry picked from commit 4c035a1fd8
)
2025-03-27 11:22:59 -04:00
Sam Lantinga
d73ad0ef18
Don't send relative motion while in a modal loop
...
This fixes queuing up a bunch of relative motion events while moving or resizing a window.
(cherry picked from commit 2e61b41652
)
2025-03-27 08:10:58 -07:00
Ryan C. Gordon
a1b888f622
alsa: Don't start the hardware until the device thread is ready to do work.
...
Otherwise, in the time it takes the thread to start and other init tasks to
complete, we tend to get an underrun on some systems, which ALSA logs to
stderr.
So this is moved to an InitThread implementation, which runs from the device
thread, right before it begins its main loop.
Reference PR #12632 .
(cherry picked from commit ae17b04c0d
)
2025-03-26 15:01:04 -04:00
Ryan C. Gordon
d6267afcb9
audio: Feed output devices immediately, instead of waiting upfront.
...
This prevents the waste of an initial buffer of audio on many backends, and is
hopefully harmless on all of them.
Reference PR #12632 .
(cherry picked from commit 41636959d2
)
2025-03-26 14:58:54 -04:00
Ryan C. Gordon
b8325be9cf
pulseaudio: Fixed typo in commented-out debug logging.
...
(cherry picked from commit 48d4104ecb
)
2025-03-26 14:58:46 -04:00
Sam Lantinga
e77ef86f09
Added mappings for the NSO N64/SEGA/SNES controllers
...
These are used on Linux when the HIDAPI driver isn't available.
(cherry picked from commit e28974124a
)
2025-03-25 14:46:30 -07:00
Sam Lantinga
951ba597ed
Fixed face buttons for the NSO SNES controller under the HIDAPI driver
...
(cherry picked from commit b88200b797
)
2025-03-25 14:46:30 -07:00
Frank Praznik
ab5e178dab
Fix spelling mistake in documentation
...
(cherry picked from commit b45ed98ae9
)
2025-03-25 12:39:54 -04:00
Frank Praznik
04dace6c75
x11: Send the _XWAYLAND_MAY_GRAB_KEYBOARD message when grabbing the keyboard
...
GNOME requires this to allow keyboard grabs on XWayland. Otherwise, XGrabKeyboard will still report success, but shortcuts won't be inhibited.
See 5f132f3975
(cherry picked from commit 716e33f106
)
2025-03-25 12:36:35 -04:00
Frank Praznik
013918cd83
cocoa: Properly set the pending fullscreen spaces state when in a transition
...
(cherry picked from commit b520cde18f
)
2025-03-24 23:26:00 -04:00
Carl Åstholm
996466e855
Check if GL_OES_EGL_image_external is supported before trying to use it
...
(cherry picked from commit dd9b9d4513
)
2025-03-24 19:52:54 -07:00
Carl Åstholm
61e7878ac0
Document SDL_malloc alignment guarantees
...
(cherry picked from commit 7ec13a2ead
)
2025-03-24 19:41:08 -07:00
Frank Praznik
c067cb4e7d
wayland: Fix global mouse position retrieval
...
(cherry picked from commit 8cb303126f
)
2025-03-24 19:06:35 -04:00
Sam Lantinga
38697dd812
Fixed mixed trigger and body rumble for Xbox controllers on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/12095
(cherry picked from commit b6ca03611f
)
2025-03-24 11:07:12 -07:00
Cameron Gutman
f03572335a
keyboard: Don't check text input on a null window
...
(cherry picked from commit c3a3a11db4
)
2025-03-23 23:53:19 -05:00
Frank Praznik
d8837edfa2
wayland: Scale accelerated relative pointer coordinates with emulated resolutions
...
The accelerated relative coordinates are always relative to the desktop resolution, and need to be scaled with emulated fullscreen resolutions for mouse movement to remain stable. Otherwise, pointer speeds will be too fast on emulated resolutions below the desktop resolution, and too slow on those above.
(cherry picked from commit 027df89ed3
)
2025-03-22 14:36:05 -04:00
expikr
e5f8043037
chore: rename integer mode field names
...
(cherry picked from commit f52f982b1e
)
2025-03-22 09:37:33 -07:00
Sam Lantinga
134b57f6f5
Improve move/resize visual smoothness on Windows
...
Fixes https://github.com/libsdl-org/SDL/issues/12528
(cherry picked from commit 6b13d69105
)
2025-03-21 16:47:29 -07:00
Marcin Serwin
072e760197
audio: hold floating point exceptions when using neon
...
(cherry picked from commit 4fcef9074b
)
2025-03-21 15:09:24 -07:00
Frank Praznik
d37a3e2a71
x11: Fix backwards _NET_WM_SYNC_REQUEST init check
...
(cherry picked from commit b493e29a81
)
2025-03-21 15:34:26 -04:00
Sam Lantinga
ed8e7e85f0
SDL_ClaimWindowForGPUDevice() should fail for transparent windows
...
The GPU API doesn't currently support transparent windows (transparent swapchain effects doesn't seem possible on D3D12) so we should explicitly fail so users don't expect transparency and then not get it.
Fixes https://github.com/libsdl-org/SDL/issues/12410
(cherry picked from commit 2fbb583290
)
2025-03-21 12:15:09 -07:00
Frank Praznik
eb9faad124
cocoa: Fix zoom check when leaving fullscreen
...
Non-resizable windows will always report as zoomed, so isZoomed is not a reliable check here.
(cherry picked from commit 79081a178f
)
2025-03-21 14:44:53 -04:00
Frank Praznik
3ed80843fe
video: Fix boolean logic for getting the pending window position
...
(cherry picked from commit 03cdd297e0
)
2025-03-21 11:36:46 -07:00
hwsmm
4029521a63
Don't send text event while ctrl/alt is held on X11/Wayland
...
(cherry picked from commit ac5b2b6102
)
2025-03-20 21:27:22 -07:00
Sam Lantinga
f971a59746
Fixed DebugLogRenderCommands() output
...
(cherry picked from commit 758eb256b9
)
2025-03-20 21:25:23 -07:00
Sam Lantinga
5836266bfb
We need to rebind D3D12 resources after updating them
...
Fixes https://github.com/libsdl-org/SDL/issues/12544
(cherry picked from commit 4ceb02434b
)
2025-03-20 20:22:33 -07:00
Max
ed893bde04
Updates SDL_SetEventFilter code snippet to SDL3
...
SDL_EventFilter points to a function that now returns a bool
(cherry picked from commit 817260c73d
)
2025-03-20 16:50:53 -07:00
Carl Åstholm
a934a36a18
emscripten: Don't use legacy JS library functions for assertions
...
(cherry picked from commit 54f5b73333
)
2025-03-20 16:32:40 -07:00
Sam Lantinga
59857acd08
Always show the on-screen keyboard on Steam Deck
...
Steam will eventually have smarts about whether a keyboard is active and will igore the request appropriately.
Fixes https://github.com/libsdl-org/SDL/issues/12595
(cherry picked from commit 03a53ce0d1
)
2025-03-20 16:30:04 -07:00
Sam Lantinga
8129b637f3
A Steam Controller might be generating keyboard input
...
We can't use keyboard input as a signal about whether a keyboard is attached. There might be keyboard input from any number of generated inputs or non-keyboard devices.
(cherry picked from commit 8caeaaacdd
)
2025-03-20 16:30:04 -07:00
Sam Lantinga
9e1675671d
Show the on-screen keyboard if we don't have active keyboard input
...
Active keyboard input is based on the input the user has most recently sent.
Fixes https://github.com/libsdl-org/SDL/issues/12595
(cherry picked from commit cbb83be895
)
2025-03-20 16:30:04 -07:00
SDL Wiki Bot
d39d951f89
Sync SDL3 wiki -> header
...
[ci skip]
(cherry picked from commit 67b4c3a156
)
2025-03-20 16:30:04 -07:00
Ryan C. Gordon
10ed6f49a9
asyncio: SDL_LoadFileAsync was not null-terminating the file data.
...
(cherry picked from commit 10072bb07d
)
2025-03-20 16:30:04 -07:00
Ryan C. Gordon
c2c848a752
SDL_audio.h: Fixed typos in docs.
...
(cherry picked from commit 85435d5a14
)
2025-03-20 16:30:04 -07:00
Sam Lantinga
8b191c3ca6
Fixed typo in build.gradle
...
(cherry picked from commit fe024b8fe3
)
2025-03-20 11:22:20 -07:00
Sam Lantinga
06a412cd68
Fixed gradle deprecation warnings
...
"Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0"
(cherry picked from commit bf7b9b020e
)
2025-03-20 11:05:56 -07:00
Sam Lantinga
b74609d5f3
Use the android-21 SDK as documented in README-android.md
...
(cherry picked from commit ac28702504
)
2025-03-20 11:05:56 -07:00
Sam Lantinga
d8756582f9
Don't create surfaces with invalid pixel formats
...
Fixes https://github.com/libsdl-org/SDL/issues/12556
(cherry picked from commit 476e7e54cb
)
2025-03-20 09:43:40 -07:00
Sam Lantinga
ff90984dc3
Fix illegal calls to DwmGetWindowAttribute()
...
DWMWA_WINDOW_CORNER_PREFERENCE and DWMWA_BORDER_COLOR are only supported for DwmSetWindowAttribute(), they can't be queried.
Fixes https://github.com/libsdl-org/SDL/issues/12206
Closes https://github.com/libsdl-org/SDL/pull/12209
(cherry picked from commit f2ed5c7a1b
)
2025-03-19 22:03:18 -07:00
Sam Lantinga
81952f9f96
Windows allows windows to be resized to zero height.
...
Changed the window client rect validation to take this into account.
Fixes https://github.com/libsdl-org/SDL/issues/9796
(cherry picked from commit 96bf12444c
)
2025-03-19 21:23:06 -07:00
Sam Lantinga
d0122ff624
Make sure we're getting called for the correct window
...
Fixes https://github.com/libsdl-org/SDL/issues/12525
(cherry picked from commit 47b0c75470
)
2025-03-19 20:22:52 -07:00