invoke decorationRect() in calculations for visibleRect()
BUG: 299358 FIXED-IN: 4.9.0 REVIEW: 104865
This commit is contained in:
parent
7f654ee959
commit
dda76d82f9
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue