Fix logic.
This commit is contained in:
parent
3358c9eb9a
commit
ce4f7c1b79
@ -230,9 +230,11 @@ void DialogPrivate::updateTheme()
|
||||
theme.backgroundSaturation(),
|
||||
frameSvgItem->frameSvg()->mask());
|
||||
|
||||
if (KWindowSystem::compositingActive() && hasMask) {
|
||||
if (KWindowSystem::compositingActive()) {
|
||||
if (hasMask) {
|
||||
hasMask = false;
|
||||
q->setMask(QRegion());
|
||||
}
|
||||
} else {
|
||||
hasMask = true;
|
||||
q->setMask(frameSvgItem->frameSvg()->mask());
|
||||
|
Loading…
Reference in New Issue
Block a user