feat: prefer highest refresh rate at native resolution

populate_modes() now selects the mode with the highest refresh rate at
the preferred (native) resolution instead of blindly using the EDID
PREFERRED flag. This ensures high-refresh panels (120 Hz, 144 Hz, …)
are used out-of-the-box, including in the greeter session.

Also fix libcosmic → libcosmic-yoda package reference.
This commit is contained in:
Lionel DARNIS 2026-07-25 16:15:30 +02:00
parent d1849f639b
commit 7187efd58f
3 changed files with 18 additions and 7 deletions

View file

@ -43,7 +43,7 @@ iced_tiny_skia = { path = "../libcosmic/iced/tiny_skia" }
iced_graphics = { path = "../libcosmic/iced/graphics", features = ["geometry"] }
indexmap = "2.13"
keyframe = "1.1.1"
cosmic = { package = "libcosmic", path = "../libcosmic", default-features = false, features = [
cosmic = { package = "libcosmic-yoda", path = "../libcosmic", default-features = false, features = [
"tokio",
"wayland",
"multi-window",