From 0b28be3447d805e7a36105a112ff5050db3f467e Mon Sep 17 00:00:00 2001 From: Sandro Giessl Date: Mon, 22 Oct 2007 18:51:38 +0000 Subject: [PATCH] Fix a little off-by-one pixel error (titlebar color drawn over window border when there is no left kwin button configured), described on http://www.michielovertoom.com/kwin-web-fix/ svn path=/trunk/KDE/kdebase/workspace/; revision=728221 --- clients/web/Web.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/web/Web.cpp b/clients/web/Web.cpp index 6e22791d79..1eb7182df6 100644 --- a/clients/web/Web.cpp +++ b/clients/web/Web.cpp @@ -224,8 +224,8 @@ WebClient::paintEvent(QPaintEvent * pe) const int titleEdgeBottom = layoutMetric(LM_TitleEdgeBottom); const int ttlHeight = layoutMetric(LM_TitleHeight); const int titleEdgeBottomBottom = r_y+titleEdgeTop+ttlHeight+titleEdgeBottom-1; - QRect titleRect = QRect(r_x+titleEdgeLeft+buttonsLeftWidth(), r_y+titleEdgeTop, - r_x2-titleEdgeRight-buttonsRightWidth()-(r_x+titleEdgeLeft+buttonsLeftWidth()), + QRect titleRect = QRect(r_x+titleEdgeLeft+buttonsLeftWidth()+1, r_y+titleEdgeTop, + r_x2-titleEdgeRight-buttonsRightWidth()-(r_x+titleEdgeLeft+buttonsLeftWidth()+1), titleEdgeBottomBottom-(r_y+titleEdgeTop) ); titleRect.setTop(1);