Skip to content

Draft: Heuristics on the screen name

Marco Martin requested to merge work/mart/screenNameHeuristics into master

change screen names in the attempt of having the same names between X11 and Wayland, which have a slightly different naming convention (ie HDMI-A vs HDMI, DisplayPort vs DP) This should fix at least in some cases having different containments between x11 and wayland

BUG: 385135

here are the places i looked at for where those names come from:

X11:

https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/randr/rroutput.c#L450 then the names are resolved with the map: https://gitlab.freedesktop.org/xorg/xserver/-/blob/master/hw/xfree86/drivers/modesetting/drmmode_display.c#3051

Wayland:

in kwin: https://invent.kde.org/plasma/kwin/-/blob/master/src/backends/drm/drm_object_connector.cpp#146

Edited by Marco Martin

Merge request reports