invoke decorationRect() in calculations for visibleRect()

BUG: 299358
FIXED-IN: 4.9.0
REVIEW: 104865
icc-effect-5.14.5
Thomas Lübking 2012-05-05 16:38:02 +02:00
parent 7f654ee959
commit dda76d82f9
1 changed files with 3 additions and 2 deletions

View File

@ -147,10 +147,11 @@ void Toplevel::disownDataPassedToDeleted()
QRect Toplevel::visibleRect() const QRect Toplevel::visibleRect() const
{ {
QRect r = decorationRect();
if (hasShadow() && !shadow()->shadowRegion().isEmpty()) { 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 NET::WindowType Toplevel::windowType(bool direct, int supported_types) const