theme: Scale titlebar spacing when computing x

The value is not scaled by default so it needs to be adjusted
depending on the window scaling, as it's done in other places.

Fixes: #87


(cherry picked from commit deda7a5235)
This commit is contained in:
Marco Trevisan (Treviño) 2018-03-23 10:50:04 -05:00 committed by Marco Trevisan
parent a98eb107be
commit 957f4ec69d

View File

@ -580,7 +580,7 @@ meta_frame_layout_calc_geometry (MetaFrameLayout *layout,
x = rect->visible.x - layout->button_margin.left * scale; x = rect->visible.x - layout->button_margin.left * scale;
if (i > 0) if (i > 0)
x -= layout->titlebar_spacing; x -= layout->titlebar_spacing * scale;
--i; --i;
} }