forked from quickshell/quickshell
core/window: fix mask reactivity
Masks previously would not update if the item was changed, and full transparency was decided incorrectly.
This commit is contained in:
parent
31264ac7d1
commit
dd811ac423
2 changed files with 9 additions and 10 deletions
|
@ -245,14 +245,9 @@ void ProxyWindowBase::updateMask() {
|
|||
auto windowRegion = QRegion(QRect(0, 0, this->width(), this->height()));
|
||||
mask = this->mMask->applyTo(windowRegion);
|
||||
}
|
||||
|
||||
if (mask.isEmpty()) {
|
||||
this->window->setFlag(Qt::WindowTransparentForInput, true);
|
||||
}
|
||||
} else {
|
||||
this->window->setFlag(Qt::WindowTransparentForInput, false);
|
||||
}
|
||||
|
||||
this->window->setFlag(Qt::WindowTransparentForInput, this->mMask != nullptr && mask.isEmpty());
|
||||
this->window->setMask(mask);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue