fixed small off-by-one error (shade/unshade)

svn path=/trunk/kdebase/kwin/; revision=78542
This commit is contained in:
Matthias Ettrich 2001-01-17 11:40:25 +00:00
parent 8190667206
commit 87b6129e3f

View file

@ -1274,8 +1274,8 @@ QSize Client::sizeForWindowSize( const QSize& wsize, bool ignore_height) const
h = QMAX( minimumHeight(), h );
int ww = wwrap->width();
int wh = 0;
if ( !wwrap->testWState( WState_ForceHide ) )
int wh = 1;
if ( !wwrap->isHidden() )
wh = wwrap->height();
if ( ignore_height && wsize.height() == 0 )