small painting bug fixed

svn path=/trunk/kdebase/kwin/; revision=61431
This commit is contained in:
Matthias Ettrich 2000-08-18 13:21:35 +00:00
parent fcfce3bb14
commit 091f055086

View file

@ -389,10 +389,10 @@ void KDEClient::resizeEvent( QResizeEvent* e)
int dx = 0; int dx = 0;
int dy = 0; int dy = 0;
if ( e->oldSize().width() != width() ) if ( e->oldSize().width() != width() )
dx = 16 + QABS( e->oldSize().width() - width() ); dx = 32 + QABS( e->oldSize().width() - width() );
if ( e->oldSize().height() != height() ) if ( e->oldSize().height() != height() )
dy = 8 + QABS( e->oldSize().height() - height() ); dy = 8 + QABS( e->oldSize().height() - height() );
if ( dy ) if ( dy )
update( 0, height() - dy + 1, width(), dy ); update( 0, height() - dy + 1, width(), dy );
if ( dx ) { if ( dx ) {
update( width() - dx + 1, 0, dx, height() ); update( width() - dx + 1, 0, dx, height() );