diff --git a/src/backends/meta-monitor-config-manager.c b/src/backends/meta-monitor-config-manager.c index a3e92f2e7..431f1c1c3 100644 --- a/src/backends/meta-monitor-config-manager.c +++ b/src/backends/meta-monitor-config-manager.c @@ -545,8 +545,8 @@ create_preferred_logical_monitor_config (MetaMonitorManager *monitor_ma switch (layout_mode) { case META_LOGICAL_MONITOR_LAYOUT_MODE_LOGICAL: - width /= scale; - height /= scale; + width = (int) roundf (width / scale); + height = (int) roundf (height / scale); break; case META_LOGICAL_MONITOR_LAYOUT_MODE_PHYSICAL: break;