Skip to content

display: Fix crash if a monitor has no preferred mode

Benjamin Berg requested to merge benzea/fix-no-preferred-mode-crash into master

This should be cherry-picked to stable.

See https://bugzilla.redhat.com/show_bug.cgi?id=1699975 for the crash happening.

When a monitor has no current mode set and also no preferred mode we ran into a crash. Simply select the first mode we can find as a further fallback.

Merge request reports