Fix logic.

This commit is contained in:
Eike Hein 2016-03-01 17:41:03 +09:00
parent 3358c9eb9a
commit ce4f7c1b79

View File

@ -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());