Fix applying initial position.
svn path=/trunk/kdebase/kwin/; revision=323152
This commit is contained in:
parent
2c744d6602
commit
29415f170e
1 changed files with 2 additions and 2 deletions
|
@ -426,14 +426,14 @@ bool Rules::applyGeometry( QRect& rect, bool init ) const
|
||||||
|
|
||||||
bool Rules::applyPosition( QPoint& pos, 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;
|
pos = this->position;
|
||||||
return checkSetStop( positionrule );
|
return checkSetStop( positionrule );
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Rules::applySize( QSize& s, bool init ) const
|
bool Rules::applySize( QSize& s, bool init ) const
|
||||||
{
|
{
|
||||||
if( size.isValid() && checkSetRule( sizerule, init ))
|
if( this->size.isValid() && checkSetRule( sizerule, init ))
|
||||||
s = this->size;
|
s = this->size;
|
||||||
return checkSetStop( sizerule );
|
return checkSetStop( sizerule );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue