SDL/src
Frank Praznik 553fc5fe0e wayland: Expose displays in a deterministic order, and attempt to better handle selecting a primary display.
Wayland can expose displays in any arbitrary order, and doesn't have the native concept of a primary display. However, there are games that presume that the first listed display is the primary, which can lead to problems if that output isn't necessarily the ideal one, as they may use that display to build a resolution list or as the default fullscreen output. This sorts displays by position, then attempts to find the primary display, first by querying the explicit ordering hint, then the GNOME DBus property, then tries to determine the 'best' display according to the criteria that is generally ideal for games and media playback.

The makes the list of displays deterministic, as long as the desktop configuration remains static, with a reasonably appropriate one prioritized as primary, even if there is no explicit way to retrieve the primary display. In the case where a user has a particularly esoteric physical display configuration, the new hint enables explicitly overriding the sorting and selection logic, allowing the entire display order to be customized, if necessary.
2024-10-15 13:52:35 -04:00
..
atomic Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
audio Set error for NULL SDL_IOStream in SDL_LoadWAV_IO() 2024-10-14 20:07:03 -07:00
camera fix pipewire prototype 2024-10-05 18:16:12 -07:00
core Updated to version 3.1.5 for development 2024-10-09 11:02:01 -07:00
cpuinfo Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
dialog Allow building both Cocoa and dummy dialog implementations 2024-10-07 18:01:39 -07:00
dynapi render: Add SDL_RenderDebugText(). 2024-10-14 02:45:33 -04:00
events clipboard: include mime types in SDL_ClipboarUpdate 2024-10-05 18:19:10 -07:00
file Don't overwrite the SDL_IOFromFile() error in SDL_LoadFile() 2024-10-14 20:07:03 -07:00
filesystem Include stdbool.h when using Visual Studio 2017+ 2024-10-01 09:57:59 -07:00
gpu GPU: Fix Metal sampler address mode order 2024-10-15 10:46:04 -04:00
haptic Include stdbool.h when using Visual Studio 2017+ 2024-10-01 09:57:59 -07:00
hidapi loadso: library handles are now SDL_SharedObject* instead of void*. 2024-10-01 12:16:10 -04:00
joystick Default SDL_HINT_JOYSTICK_GAMEINPUT to "1" on GDK platforms 2024-10-09 07:30:13 -07:00
libm libm/e_exp.c: fix gcc warning on 32 bit: 2024-10-10 18:23:20 +03:00
loadso loadso: library handles are now SDL_SharedObject* instead of void*. 2024-10-01 12:16:10 -04:00
locale Re-added SDL_getenv() as a thread-safe getenv() implementation 2024-09-15 09:37:04 -07:00
main Added SDL_DelayPrecise() 2024-10-10 08:06:18 -07:00
misc Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
power winrt: Removed WinRT/Windows Phone/UWP support. 2024-09-06 13:28:39 -04:00
process Make sure stdio handles are in blocking mode 2024-10-14 22:10:49 -07:00
render render: Add SDL_RenderDebugText(). 2024-10-14 02:45:33 -04:00
sensor Rename SDL_SetThreadPriority() to SDL_SetCurrentThreadPriority() 2024-10-04 08:57:03 -07:00
stdlib Added SDL_StepBackUTF8() 2024-10-09 09:49:10 -07:00
storage Include stdbool.h when using Visual Studio 2017+ 2024-10-01 09:57:59 -07:00
test render: Add SDL_RenderDebugText(). 2024-10-14 02:45:33 -04:00
thread thread: Rewrote generic Condition Variables. 2024-10-10 15:03:53 -04:00
time Removed SDL_bool in favor of plain bool 2024-09-18 08:32:30 -07:00
timer Always use WaitForSingleObjectEx() as a fallback in SDL_SYS_DelayNS() 2024-10-11 21:18:31 -07:00
video wayland: Expose displays in a deterministic order, and attempt to better handle selecting a primary display. 2024-10-15 13:52:35 -04:00
SDL.c init: Log '<unspecified>' not '(null)' if the app name isn't set. 2024-10-08 14:30:55 -04:00
SDL_assert.c 3DS: Support simple message boxes 2024-10-12 16:07:52 -07:00
SDL_assert_c.h Use C++ style comments consistently in SDL source code 2024-08-22 13:30:02 -07:00
SDL_error.c Added SDL_SetErrorV() 2024-10-13 09:26:25 -07:00
SDL_error_c.h Use C99 bool internally in SDL 2024-08-22 13:30:02 -07:00
SDL_guid.c Use C++ style comments consistently in SDL source code 2024-08-22 13:30:02 -07:00
SDL_hashtable.c Fixed warning: ‘new_item.probe_len’ may be used uninitialized in this function 2024-10-10 08:06:18 -07:00
SDL_hashtable.h Removed const qualifiers from SDL_CreateHashTable() parameter types 2024-10-02 16:29:49 -07:00
SDL_hints.c Old env vars as fallback for SDL_VIDEO_DRIVER + SDL_AUDIO_DRIVER #11115 2024-10-12 08:47:02 -07:00
SDL_hints_c.h Use C99 bool internally in SDL 2024-08-22 13:30:02 -07:00
SDL_internal.h Simplified internal SDL_Surface structure 2024-10-01 08:10:04 -07:00
SDL_list.c Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
SDL_list.h Use SDL_bool instead an int return code in the SDL API 2024-08-27 10:31:46 -07:00
SDL_log.c Check return value of SDL_small_alloc() 2024-10-13 14:07:26 -07:00
SDL_log_c.h Use C++ style comments consistently in SDL source code 2024-08-22 13:30:02 -07:00
SDL_properties.c Fix typo: DiretMedia->DirectMedia 2024-10-05 00:08:01 -04:00
SDL_properties_c.h Fix typo: DiretMedia->DirectMedia 2024-10-05 00:08:01 -04:00
SDL_utils.c Simplified internal SDL_Surface structure 2024-10-01 08:10:04 -07:00
SDL_utils_c.h Simplified internal SDL_Surface structure 2024-10-01 08:10:04 -07:00