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