diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-30 03:22:42 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-30 03:22:42 +0000 |
commit | 4f396b03eb06f2f441615ab6c56f2c3ae43e8590 (patch) | |
tree | 0dfadbcbcf92b82708c4f7a565147b9b6803ab45 /kwin/lib/kcommondecoration.cpp | |
parent | ba1d97533cad981404f93568f0815b7a3dec2e70 (diff) | |
download | tdebase-4f396b03eb06f2f441615ab6c56f2c3ae43e8590.tar.gz tdebase-4f396b03eb06f2f441615ab6c56f2c3ae43e8590.zip |
Fix the "redmond" kwin client
It is highly recommended that "window resize and move when maximized" be disabled when this client is in use
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1243970 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin/lib/kcommondecoration.cpp')
-rw-r--r-- | kwin/lib/kcommondecoration.cpp | 2 |
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); |