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