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:
parent
bbb6d2d96a
commit
0b28be3447
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue