diff options
author | Jonas Ådahl <jadahl@gmail.com> | 2017-03-08 16:05:00 +0800 |
---|---|---|
committer | Jonas Ådahl <jadahl@gmail.com> | 2017-03-09 10:17:30 +0800 |
commit | 944339f6a54afd278ea5c0a9dac833e85c2ac1ac (patch) | |
tree | 37eb1cdc547ab08e94049029cb6b5897c3df130c /src/backends/meta-monitor-manager-dummy.c | |
parent | 4cfcd4bce08926e4e9005cd912c81e83819194d5 (diff) | |
download | mutter-944339f6a54afd278ea5c0a9dac833e85c2ac1ac.tar.gz |
monitor-manager: Expose whether the backend handles a transform
Expose via a new API whether the transform on a logical monitor is
handled by the backend. This was previously only exposed only in the
native backend. This will be used to emulate not supporting transforms
in the backend in the nested backend.
https://bugzilla.gnome.org/show_bug.cgi?id=779745
Diffstat (limited to 'src/backends/meta-monitor-manager-dummy.c')
-rw-r--r-- | src/backends/meta-monitor-manager-dummy.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backends/meta-monitor-manager-dummy.c b/src/backends/meta-monitor-manager-dummy.c index 77c984a6a..0d8c01b23 100644 --- a/src/backends/meta-monitor-manager-dummy.c +++ b/src/backends/meta-monitor-manager-dummy.c @@ -521,6 +521,14 @@ meta_monitor_manager_dummy_apply_config (MetaMonitorManager *manager, meta_monitor_manager_rebuild_derived (manager); } +static gboolean +meta_monitor_manager_dummy_is_transform_handled (MetaMonitorManager *manager, + MetaCrtc *crtc, + MetaMonitorTransform transform) +{ + return TRUE; +} + static void meta_monitor_manager_dummy_class_init (MetaMonitorManagerDummyClass *klass) { @@ -530,6 +538,7 @@ meta_monitor_manager_dummy_class_init (MetaMonitorManagerDummyClass *klass) manager_class->ensure_initial_config = meta_monitor_manager_dummy_ensure_initial_config; manager_class->apply_monitors_config = meta_monitor_manager_dummy_apply_monitors_config; manager_class->apply_configuration = meta_monitor_manager_dummy_apply_config; + manager_class->is_transform_handled = meta_monitor_manager_dummy_is_transform_handled; } static void |