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
This commit is contained in:
Sandro Giessl 2007-10-22 18:51:38 +00:00
parent bbb6d2d96a
commit 0b28be3447

View file

@ -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);