Sam Lantinga
e324c7d692
Fixed event spam caused by repeated calls to IME_SetTextInputRect()
2024-06-28 17:09:22 -07:00
Sam Lantinga
42d8db7e34
Current Korean IMEs don't have candidates
2024-06-28 17:09:22 -07:00
Sam Lantinga
ed2022a175
Added SDL_EVENT_TEXT_EDITING_CANDIDATES
...
This allows applications that have set SDL_HINT_IME_SHOW_UI to "0" to get candidates lists they can draw themselves.
Fixes https://github.com/libsdl-org/SDL/issues/4855
2024-06-28 17:09:22 -07:00
SDL Wiki Bot
c983c1da97
Sync SDL3 wiki -> header
2024-06-28 22:35:57 +00:00
Frank Praznik
44ec57626f
vulkan: Don't set the opaque bit on transparent windows
...
If window transparency was requested via the SDL_WINDOW_TRANSPARENT flag, don't set the opaque bit on the swapchain composite alpha value. Fixes transparent windows when using the Vulkan renderer (e.g. testsprite --transparent).
2024-06-28 14:47:32 -04:00
Anonymous Maarten
339d83bdfa
ci: assume all .dmp files in build directy are minidump files
2024-06-28 18:28:31 +02:00
hwsmm
915ef28753
Fix mouse button not changing in pen mouse emulation
2024-06-28 11:27:35 -04:00
Ryan C. Gordon
87439c0008
x11: Fix build when `X_HAVE_UTF8_STRING` is not defined.
...
Fixes #10094 .
(cherry picked from commit 3e4bb5acd0
)
2024-06-27 22:14:31 -07:00
Ryan C. Gordon
ecfa363889
begin_code: Solaris Studio has `__has_attribute` defined by isn't usable here.
...
Fixes #10095 .
(cherry picked from commit d96f1d5360
)
2024-06-27 22:13:48 -07:00
Ryan C. Gordon
d7ee9ce455
SDL_endian.h: Fix byte order detection on Solaris (and some SPARC compilers).
...
Fixes #10093 .
(Sort of cherry-picked from 14183f8ecac099982883331ae7e405f82e42aa6b.)
2024-06-28 00:14:26 -04:00
Ryan C. Gordon
d8e68aea9d
atomic: Solaris needs the `_nv` variant of `atomic_or_uint`.
...
(This means "new value" and returns the atomically updated value. Before, we
were returning a value from a void function.)
(cherry picked from commit 498cbffd89
)
2024-06-27 23:50:31 -04:00
Sam Lantinga
8165e96514
Fixed whitespace
2024-06-27 18:35:12 -07:00
Sam Lantinga
dcd7b4e497
testime: highlight selected clauses in Japanese composition mode
2024-06-27 17:43:03 -07:00
Sam Lantinga
50250adba7
testime: draw a blinking cursor at the text insertion point
2024-06-27 17:43:03 -07:00
Sam Lantinga
3d525331aa
testime: add a 1 pixel border around glyphs to avoid texture sampling into other glyphs
2024-06-27 17:43:03 -07:00
Sam Lantinga
938c974cca
testime: use a replacement character for characters not in the font
2024-06-27 17:43:03 -07:00
Sam Lantinga
a67e6b80de
Updated unifont to version 15.1.05
2024-06-27 17:43:03 -07:00
Sam Lantinga
50f50612bd
Removed checkkeysthreads
...
It's out of date relative to the IME changes and doesn't add any value
2024-06-27 17:43:03 -07:00
Sam Lantinga
b7748c1513
Prevent duplicate calls to start/stop text input
2024-06-27 17:43:03 -07:00
Sam Lantinga
3609b15920
Fixed showing the selected clause in the Japanese IME
2024-06-27 17:43:03 -07:00
SDL Wiki Bot
b7ab5182d3
Sync SDL3 wiki -> header
2024-06-27 21:37:27 +00:00
Ryan C. Gordon
1e0ac5771a
testiconv: Remove half-baked SDL_StepUTF8 testing code.
2024-06-27 17:36:09 -04:00
Ryan C. Gordon
a9cfcf6bde
stdinc: Drastically improve SDL_StepUTF8() and make it a public API.
...
Fixes #10105 .
2024-06-27 17:36:09 -04:00
Ryan C. Gordon
9b8c5f642f
testaudio: Better fix for NULL dereference.
...
This code already handled NULL fine, it just got wrapped in a SDL_strdup call
in e23257307e
, so make that SDL_strdup check for
NULL first.
2024-06-27 17:24:49 -04:00
Ryan C. Gordon
5631c6dbaa
testaudio: Don't crash if SDL_GetAudioDeviceName() returns NULL.
...
It definitely will for default devices, so this crash is real, but it's also
good defensive coding if something blows up unexpectedly.
Fixes #10130 .
2024-06-27 17:20:11 -04:00
Ryan C. Gordon
982feb7a65
vulkan: SDL_Vulkan_CreateSurface now returns the usual int (0=ok, -1=error).
...
Fixes #10091 .
2024-06-27 15:25:10 -04:00
Ozkan Sezer
a4f962fd46
SDL_x11shape.c: fix build if SDL_VIDEO_DRIVER_X11_XSHAPE isn't defined
...
Fixes : https://github.com/libsdl-org/SDL/issues/10128 .
2024-06-27 05:47:50 +03:00
Frank Praznik
800c35a2c1
dialog: Don't potentially call SDL_free() on an uninitialized value
2024-06-26 21:56:40 -04:00
Frank Praznik
596651f13a
dialog: Decodes percent encoded URI paths returned by the xdg file portal
2024-06-26 21:31:35 -04:00
Frank Praznik
71200e94a8
core: Factor out common URI decode functions from Wayland and X11
2024-06-26 21:31:35 -04:00
Sam Lantinga
0ae4fd0ec9
Make sure we don't try to use the XInput DLL after it's unloaded
...
Steam ran into a crash SDL_XINPUT_JoystickDetect() with XINPUTGETCAPABILITIES being NULL. I'm not sure how that happened, and there may still be a race condition if this is a multi-threaded issue, but at least this is more correct.
2024-06-26 15:44:03 -07:00
Francisco Javier Trujillo Mata
d86ea0622d
Add slash to cwd call
2024-06-26 13:31:59 -07:00
Sam Lantinga
c7f7464174
Updated scancode documentation
2024-06-26 12:33:16 -07:00
Sam Lantinga
8949de3978
Fixed building with older libdrm headers
2024-06-26 12:18:43 -07:00
Sam Lantinga
56e85064ff
Fixed audio recording latency after a hitch
...
We want to return any data as soon as it's available, if we get a hitch and always wait, we'll never catch up.
2024-06-26 12:06:03 -07:00
Ryan C. Gordon
9fd54b724f
include: Added documentation for SDL_PRESSED and SDL_RELEASED.
...
Fixes #10069 .
2024-06-26 14:08:56 -04:00
SDL Wiki Bot
306cc6f91e
Sync SDL3 wiki -> header
2024-06-26 17:52:24 +00:00
Sam Lantinga
80e64ef921
Windows IME cleanup
...
* Don't need to initialize values already zeroed
* Added debug message logging
* Don't send duplicate SDL_EVENT_TEXT_EDITING events with empty text
* Send the length of selected text in the SDL_EVENT_TEXT_EDITING event
* Fixed potential crashes when out of memory
2024-06-26 08:26:52 -07:00
hwsmm
dc8b06fb5a
Check if SDL_GetKeyboardFocus is null in X11/Wayland events
2024-06-26 08:11:54 -07:00
Edoardo Lolletti
64acde86de
stdcpp threads, simplify SDL_GetCurrentThreadID implementation
...
Removed the workaround that handrolled a thread id using a thread_local variable alongside static mutexes
2024-06-26 09:06:27 -04:00
Cecill Etheredge
e9a93246ef
fix: Use drmModeAddFB2WithModifiers instead of drmModeAddFB to allow using GBM modifiers.
...
This fixes corrupt framebuffers on platforms that require the use of modifiers.
(cherry picked from commit 620e875335
)
(cherry picked from commit 6589287ed6
)
2024-06-25 14:21:36 -07:00
Sam Lantinga
b37b94453c
Fixed multi-window test programs not quitting when windows are closed
2024-06-25 10:17:52 -07:00
Aleksander
596c0af0f3
Camera: Bugfix: `ChooseBestCameraSpec` doesn't set camera colorspace
2024-06-25 07:03:22 -07:00
SDL Wiki Bot
3d121d9bc7
Sync SDL3 wiki -> header
2024-06-25 03:32:46 +00:00
Sam Lantinga
0804598b5d
Added a font glyph for missing characters
2024-06-24 20:32:03 -07:00
Sam Lantinga
def7a43a2e
SDL_HINT_IME_SHOW_UI defaults to SDL_TRUE
...
This hint is currently only used on Windows, and this matches the behavior of other platforms.
2024-06-24 20:32:03 -07:00
Sam Lantinga
382494eeda
checkkeys: draw the IME composition text
2024-06-24 20:32:03 -07:00
Sam Lantinga
018ca39c45
Don't move the cursor to the end of the selected candidate
...
We might have legitimately moved the cursor to the beginning.
Fixes https://github.com/libsdl-org/SDL/issues/9761
2024-06-24 20:32:03 -07:00
Sam Lantinga
92b3ce20b1
checkkeys: don't toggle text input with the left mouse button
...
This often gets triggered when clicking back and forth between the language bar and the application
2024-06-24 20:32:03 -07:00
Sam Lantinga
377014c430
Added some documentation to the SDL_EVENT_TEXT_EDITING event
2024-06-24 20:32:03 -07:00