mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-28 18:50:40 +03:00
dont update dock settings mask for compositing
--follow PlasmaQuick::Dialog:Popup window approach and dont apply any mask when compositing is active
This commit is contained in:
parent
39c5ee9353
commit
63f6d22f47
@ -726,10 +726,15 @@ void PrimaryConfigView::updateEffects()
|
||||
}
|
||||
|
||||
if (!mask.isEmpty()) {
|
||||
setMask(mask);
|
||||
if (KWindowSystem::compositingActive()) {
|
||||
setMask(QRegion());
|
||||
} else {
|
||||
setMask(mask);
|
||||
}
|
||||
|
||||
KWindowEffects::enableBlurBehind(winId(), true, mask);
|
||||
} else {
|
||||
setMask(QRect());
|
||||
setMask(QRegion());
|
||||
KWindowEffects::enableBlurBehind(winId(), false);
|
||||
}
|
||||
}
|
||||
|
@ -421,16 +421,20 @@ void SecondaryConfigView::updateEffects()
|
||||
if (rootObject) {
|
||||
const QVariant maskProperty = rootObject->property("backgroundMask");
|
||||
if (static_cast<QMetaType::Type>(maskProperty.type()) == QMetaType::QRegion) {
|
||||
qDebug() << "found 2...";
|
||||
mask = maskProperty.value<QRegion>();
|
||||
}
|
||||
}
|
||||
|
||||
if (!mask.isEmpty()) {
|
||||
setMask(mask);
|
||||
if (KWindowSystem::compositingActive()) {
|
||||
setMask(QRegion());
|
||||
} else {
|
||||
setMask(mask);
|
||||
}
|
||||
|
||||
KWindowEffects::enableBlurBehind(winId(), true, mask);
|
||||
} else {
|
||||
setMask(QRect());
|
||||
setMask(QRegion());
|
||||
KWindowEffects::enableBlurBehind(winId(), false);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user