Check if the decoration pixmaps need to be resized before resizing them.
svn path=/trunk/KDE/kdebase/workspace/; revision=1104070
This commit is contained in:
parent
e969813b4a
commit
8ce52d5cc0
1 changed files with 12 additions and 4 deletions
|
@ -577,10 +577,18 @@ void Client::resizeDecorationPixmaps()
|
|||
QRect lr, rr, tr, br;
|
||||
layoutDecorationRects( lr, tr, rr, br, DecorationRelative );
|
||||
|
||||
if ( decorationPixmapTop.size() != tr.size() )
|
||||
decorationPixmapTop = QPixmap( tr.size() );
|
||||
|
||||
if ( decorationPixmapBottom.size() != br.size() )
|
||||
decorationPixmapBottom = QPixmap( br.size() );
|
||||
|
||||
if ( decorationPixmapLeft.size() != lr.size() )
|
||||
decorationPixmapLeft = QPixmap( lr.size() );
|
||||
|
||||
if ( decorationPixmapRight.size() != rr.size() )
|
||||
decorationPixmapRight = QPixmap( rr.size() );
|
||||
|
||||
#ifdef HAVE_XRENDER
|
||||
if ( Extensions::renderAvailable() ) {
|
||||
// Make sure the pixmaps are created with alpha channels
|
||||
|
|
Loading…
Reference in a new issue