diff options
Diffstat (limited to 'kwin/lib')
-rw-r--r-- | kwin/lib/kcommondecoration.cpp | 2 | ||||
-rw-r--r-- | kwin/lib/kcommondecoration.h | 3 |
2 files changed, 4 insertions, 1 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); diff --git a/kwin/lib/kcommondecoration.h b/kwin/lib/kcommondecoration.h index ff720ab91..8126445ad 100644 --- a/kwin/lib/kcommondecoration.h +++ b/kwin/lib/kcommondecoration.h @@ -113,7 +113,8 @@ class KWIN_EXPORT KCommonDecoration : public KDecoration LM_ButtonHeight, LM_ButtonSpacing, LM_ExplicitButtonSpacer, - LM_ButtonMarginTop + LM_ButtonMarginTop, + LM_RightButtonsMarginTop }; enum DecorationBehaviour |