From 1a308b9fda185e0ea35b276da5814710935b0578 Mon Sep 17 00:00:00 2001
From: tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Date: Sat, 30 Jul 2011 03:51:30 +0000
Subject: Another "redmond" kwin client fix

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1243972 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
---
 kwin/clients/redmond/redmond.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kwin/clients/redmond/redmond.cpp b/kwin/clients/redmond/redmond.cpp
index fab104d8b..9fd625dde 100644
--- a/kwin/clients/redmond/redmond.cpp
+++ b/kwin/clients/redmond/redmond.cpp
@@ -395,7 +395,7 @@ int RedmondDeco::layoutMetric(LayoutMetric lm, bool respectWindowState, const KC
 			return border ? borderWidth+2 : 2;
 
 		case LM_TitleEdgeTop:
-			return border ? borderWidth+1 : 2;
+			return border ? borderWidth+1 : 1;
 
 		case LM_TitleEdgeBottom:
 			return border ? 1 : 0;
@@ -405,7 +405,7 @@ int RedmondDeco::layoutMetric(LayoutMetric lm, bool respectWindowState, const KC
 			return border ? 1 : 0;
 
 		case LM_TitleHeight:
-			return titleHeight-2;
+			return border ? titleHeight-2 : titleHeight-1;
 
 		case LM_ButtonWidth:
 			return titleHeight-2;
-- 
cgit v1.2.3

