Fixed resize artifacts

svn path=/trunk/kdebase/kwin/; revision=251862
icc-effect-5.14.5
Luciano Montanaro 2003-09-17 14:25:14 +00:00
parent 87fa54326f
commit 4aa26e6ddb
1 changed files with 5 additions and 4 deletions

View File

@ -432,10 +432,11 @@ void LaptopClient::resizeEvent(QResizeEvent* e)
widget()->update( 0, height() - dy + 1, width(), dy );
if ( dx ) {
widget()->update( width() - dx + 1, 0, dx, height() );
widget()->update( QRect( QPoint(4,4), titlebar->geometry().bottomLeft() - QPoint(1,0) ) );
widget()->update( QRect( titlebar->geometry().topRight(), QPoint( width() - 4, titlebar->geometry().bottom() ) ) );
// titlebar needs no background
QApplication::postEvent( this, new QPaintEvent( titlebar->geometry(), FALSE ) );
widget()->update( QRect( QPoint(4,4),
titlebar->geometry().bottomLeft() - QPoint(1,0) ) );
widget()->update( QRect( titlebar->geometry().topRight(),
QPoint( width() - 4, titlebar->geometry().bottom() ) ) );
widget()->update(titlebar->geometry());
}
}
}