Fix DECORATIVE widget drawing outside of window

This commit is contained in:
Martín Capello 2025-08-27 14:49:19 -03:00 committed by David Capello
parent 2db193b8e3
commit 3a14ac72a4
1 changed files with 4 additions and 0 deletions

View File

@ -936,6 +936,10 @@ void Widget::getDrawableRegion(gfx::Region& region, DrawableRegionFlags flags)
if (p) {
region &= Region(p->bounds());
}
// Intersect with window bounds
if (this->window()) {
region &= Region(this->window()->bounds());
}
}
// Limit to the displayable area