Commit 66f4ca37 authored by Alberts Muktupāvels's avatar Alberts Muktupāvels

monitor-config-manager: round layout size after scaling

Based on mutter commit:
mutter@4786cc85
parent d6748698
......@@ -179,8 +179,8 @@ create_preferred_logical_monitor_config (GfMonitorManager *monitor_man
switch (layout_mode)
{
case GF_LOGICAL_MONITOR_LAYOUT_MODE_LOGICAL:
width /= scale;
height /= scale;
width = (int) roundf (width / scale);
height = (int) roundf (height / scale);
break;
case GF_LOGICAL_MONITOR_LAYOUT_MODE_PHYSICAL:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment