summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-07-01 17:59:36 -0700
committerJasper St. Pierre <jstpierre@mecheye.net>2015-07-01 18:22:48 -0700
commit659b8ed471b49b583e8bc30d99bbdb6bb8d44c3e (patch)
tree6c49087133e07bb2f41c1af9e7b5c344f86b2227 /src
parent94bce5a00f73139dfb74db1511bcc34912f76314 (diff)
downloadmutter-659b8ed471b49b583e8bc30d99bbdb6bb8d44c3e.tar.gz
monitor-manager-xrandr: don't set underscan property when not supported
We should not be setting random output properties like this. Use the function we just introduced to only set the underscan flag when it's actually supported.
Diffstat (limited to 'src')
-rw-r--r--src/backends/x11/meta-monitor-manager-xrandr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backends/x11/meta-monitor-manager-xrandr.c b/src/backends/x11/meta-monitor-manager-xrandr.c
index 86d24b511..dd10c38d2 100644
--- a/src/backends/x11/meta-monitor-manager-xrandr.c
+++ b/src/backends/x11/meta-monitor-manager-xrandr.c
@@ -1209,9 +1209,10 @@ meta_monitor_manager_xrandr_apply_configuration (MetaMonitorManager *manager,
output_info->output,
output_info->is_presentation);
- output_set_underscanning_xrandr (manager_xrandr,
- output_info->output,
- output_info->is_underscanning);
+ if (output_get_supports_underscanning_xrandr (manager_xrandr, output_info->output))
+ output_set_underscanning_xrandr (manager_xrandr,
+ output_info->output,
+ output_info->is_underscanning);
output->is_primary = output_info->is_primary;
output->is_presentation = output_info->is_presentation;