invoke decorationRect() in calculations for visibleRect()

BUG: 299358
FIXED-IN: 4.9.0
REVIEW: 104865
This commit is contained in:
Thomas Lübking 2012-05-05 16:38:02 +02:00
parent 7f654ee959
commit dda76d82f9

View file

@ -147,10 +147,11 @@ void Toplevel::disownDataPassedToDeleted()
QRect Toplevel::visibleRect() const
{
QRect r = decorationRect();
if (hasShadow() && !shadow()->shadowRegion().isEmpty()) {
return shadow()->shadowRegion().boundingRect().translated(geometry().topLeft());
r |= shadow()->shadowRegion().boundingRect();
}
return geometry();
return r.translated(geometry().topLeft());
}
NET::WindowType Toplevel::windowType(bool direct, int supported_types) const