diff --git a/src/detection/displayserver/linux/wayland/global-output.c b/src/detection/displayserver/linux/wayland/global-output.c index 7f815f42f..a8299d16d 100644 --- a/src/detection/displayserver/linux/wayland/global-output.c +++ b/src/detection/displayserver/linux/wayland/global-output.c @@ -122,7 +122,7 @@ void ffWaylandHandleGlobalOutput(WaylandData* wldata, struct wl_registry* regist display.edidName.length ? &display.edidName // Try ignoring `eDP-1-unknown`, where `unknown` is localized - : display.description.length && !(ffStrbufStartsWithS(&display.description, display.name.chars) && display.description.chars[display.name.length] == '-') + : display.description.length && !ffStrbufContain(&display.description, &display.name) ? &display.description : &display.name, display.type, diff --git a/src/detection/displayserver/linux/wayland/zwlr-output.c b/src/detection/displayserver/linux/wayland/zwlr-output.c index 76aee392a..dd31b91b0 100644 --- a/src/detection/displayserver/linux/wayland/zwlr-output.c +++ b/src/detection/displayserver/linux/wayland/zwlr-output.c @@ -131,7 +131,7 @@ static void waylandHandleZwlrHead(void *data, FF_MAYBE_UNUSED struct zwlr_output rotation, display.edidName.length ? &display.edidName - : display.description.length + : display.description.length && !ffStrbufContain(&display.description, &display.name) ? &display.description : &display.name, display.type,