monitor-config-manager: Support logical monitor transforms

Add support for rotated monitors. This is done per logical monitor, as
every monitor assigned to a logical monitor must be transformed in the
same way. This includes being transformed on the same level; e.g. if
the backend does not support transforming any monitor of a logical
monitor natively, then all monitors will be transformed using the
offscreen intermediate framebuffer.

https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
Jonas Ådahl
2017-03-21 14:17:18 +08:00
parent 7c226462e0
commit 472a434212
7 changed files with 78 additions and 15 deletions

View File

@ -1736,6 +1736,7 @@ create_logical_monitor_config_from_variant (MetaMonitorManager *manager
.width = width,
.height = height
},
.transform = META_MONITOR_TRANSFORM_NORMAL,
.scale = (int) scale,
.is_primary = is_primary,
.monitor_configs = monitor_configs