invoke decorationRect() in calculations for visibleRect()
BUG: 299358 FIXED-IN: 4.9.0 REVIEW: 104865icc-effect-5.14.5
parent
7f654ee959
commit
dda76d82f9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue