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:
Fredrik Höglund 2010-03-16 16:37:08 +00:00
parent e969813b4a
commit 8ce52d5cc0

View file

@ -577,10 +577,18 @@ void Client::resizeDecorationPixmaps()
QRect lr, rr, tr, br; QRect lr, rr, tr, br;
layoutDecorationRects( lr, tr, rr, br, DecorationRelative ); layoutDecorationRects( lr, tr, rr, br, DecorationRelative );
if ( decorationPixmapTop.size() != tr.size() )
decorationPixmapTop = QPixmap( tr.size() ); decorationPixmapTop = QPixmap( tr.size() );
if ( decorationPixmapBottom.size() != br.size() )
decorationPixmapBottom = QPixmap( br.size() ); decorationPixmapBottom = QPixmap( br.size() );
if ( decorationPixmapLeft.size() != lr.size() )
decorationPixmapLeft = QPixmap( lr.size() ); decorationPixmapLeft = QPixmap( lr.size() );
if ( decorationPixmapRight.size() != rr.size() )
decorationPixmapRight = QPixmap( rr.size() ); decorationPixmapRight = QPixmap( rr.size() );
#ifdef HAVE_XRENDER #ifdef HAVE_XRENDER
if ( Extensions::renderAvailable() ) { if ( Extensions::renderAvailable() ) {
// Make sure the pixmaps are created with alpha channels // Make sure the pixmaps are created with alpha channels