monitor-manager-kms: Add common modes

Desktop / GNOME / Mutter - Rui Matos [gmail.com] - 12 September 2016 13:02 UTC

Some output devices only advertise their preferred mode even though they're able to display others too. This means we can include some common modes in each output's supported list.

This is particularly important for mirroring, since we can only mirror outputs which are using the same resolution.

https://bugzilla.gnome.org/show_bug.cgi?id=744544

9a07607 monitor-manager-kms: Add common modes
configure.ac | 2 +
src/Makefile.am | 8 ++
src/backends/native/gen-default-modes.py | 89 ++++++++++++++++
src/backends/native/meta-default-modes.h | 29 +++++
src/backends/native/meta-monitor-manager-kms.c | 136 ++++++++++++++++++++----
5 files changed, 245 insertions(+), 19 deletions(-)

Upstream: git.gnome.org


  • Share