From edec0c2ffd71862b836c432f79233c1b50b15c03 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Fri, 26 Dec 2025 13:13:30 -0500 Subject: [PATCH] hints: Note an additional method for retrieving display connector names --- include/SDL3/SDL_hints.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/include/SDL3/SDL_hints.h b/include/SDL3/SDL_hints.h index 8855561678..d8edf8c3df 100644 --- a/include/SDL3/SDL_hints.h +++ b/include/SDL3/SDL_hints.h @@ -3541,10 +3541,12 @@ extern "C" { * prioritized in the list of displays, as exposed by calling * SDL_GetDisplays(), with the first listed becoming the primary display. The * naming convention can vary depending on the environment, but it is usually - * a connector name (e.g. 'DP-1', 'DP-2', 'HDMI-A-1',etc...). + * a connector name (e.g. 'DP-1', 'DP-2', 'HDMI-A-1', etc...). * - * On Wayland and X11 desktops, the connector names associated with displays - * can typically be found by using the `xrandr` utility. + * On Wayland desktops, the connector names associated with displays + * can be found in the `name` property of the info output from + * `wayland-info -i wl_output`. On X11 desktops, the `xrandr` utility can be + * used to retrieve the connector names associated with displays. * * This hint is currently supported on the following drivers: *