Fix applying initial position.

svn path=/trunk/kdebase/kwin/; revision=323152
This commit is contained in:
Luboš Luňák 2004-06-23 17:34:36 +00:00
parent 2c744d6602
commit 29415f170e

View file

@ -426,14 +426,14 @@ bool Rules::applyGeometry( QRect& rect, bool init ) const
bool Rules::applyPosition( QPoint& pos, bool init ) const
{
if( pos != invalidPoint && checkSetRule( positionrule, init ))
if( this->position != invalidPoint && checkSetRule( positionrule, init ))
pos = this->position;
return checkSetStop( positionrule );
}
bool Rules::applySize( QSize& s, bool init ) const
{
if( size.isValid() && checkSetRule( sizerule, init ))
if( this->size.isValid() && checkSetRule( sizerule, init ))
s = this->size;
return checkSetStop( sizerule );
}