summaryrefslogtreecommitdiffstats
path: root/kwin/lib/kcommondecoration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kwin/lib/kcommondecoration.cpp')
-rw-r--r--kwin/lib/kcommondecoration.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kwin/lib/kcommondecoration.cpp b/kwin/lib/kcommondecoration.cpp
index 556e20c9e..d3d43ce12 100644
--- a/kwin/lib/kcommondecoration.cpp
+++ b/kwin/lib/kcommondecoration.cpp
@@ -97,6 +97,7 @@ int KCommonDecoration::layoutMetric(LayoutMetric lm, bool, const KCommonDecorati
return 5;
case LM_ButtonMarginTop:
+ case LM_RightButtonsMarginTop:
return 0;
case LM_ExplicitButtonSpacer:
@@ -212,6 +213,7 @@ void KCommonDecoration::updateLayout() const
}
if (m_buttonsRight.count() > 0) {
+ int y = r_y + layoutMetric(LM_TitleEdgeTop) + layoutMetric(LM_ButtonMarginTop) + layoutMetric(LM_RightButtonsMarginTop);
const int titleEdgeRightLeft = r_x2-layoutMetric(LM_TitleEdgeRight)+1;
const int buttonSpacing = layoutMetric(LM_ButtonSpacing);