Skip to content

Advertise needed modes

Jonas Ådahl requested to merge jadahl/mutter:wip/advertise-needed-modes into master

GPD Win 2 seems to advertise modes in portrait modes. A filter that aimed to filter out useless modes (e.g. 640x480) incorrectly caught the GPD Win 2 modes, causing the Display Settings panel to not get any modes at all.

Fix this in two (in this case redudant) ways:

  • Don't prefer landscape modes over portrait modes (compare area instead of dimension)
  • Always advertise modes that have the same dimensions as the preferred mode

Merge request reports