fix NOCOMPOSITING mode mask calculations

FIXED-IN:0.9.10
BUG:418456
pull/16/head
Michail Vourlakos 5 years ago
parent 9a63e2b1fc
commit cafa0d54c7

@ -427,23 +427,34 @@ Item{
if (!latteView)
return;
if (latteView.visibility.isHidden) {
efGeometry.x = 0;
efGeometry.y = 0;
efGeometry.width = 0;
efGeometry.height = 0;
if (!Latte.WindowSystem.compositingActive) {
//! NOCOMPOSITING mode is a special case and Effects Area is also used for
//! different calculations for View::mask()
var rootGeometry = mapToItem(root, 0, 0);
efGeometry.x = rootGeometry.x;
efGeometry.y = rootGeometry.y;
efGeometry.width = width;
efGeometry.height = height;
} else {
if (!root.behaveAsPlasmaPanel) {
var rootGeometry = mapToItem(root, 0, 0);
efGeometry.x = rootGeometry.x;
efGeometry.y = rootGeometry.y;
if (latteView.visibility.isHidden) {
//! valid hide mask
efGeometry.x = -1;
efGeometry.y = -1;
efGeometry.width = 1;
efGeometry.height = 1;
} else {
efGeometry.x = 0;
efGeometry.y = 0;
}
if (!root.behaveAsPlasmaPanel) {
var rootGeometry = mapToItem(root, 0, 0);
efGeometry.x = rootGeometry.x;
efGeometry.y = rootGeometry.y;
} else {
efGeometry.x = 0;
efGeometry.y = 0;
}
efGeometry.width = width;
efGeometry.height = height;
efGeometry.width = width;
efGeometry.height = height;
}
}
latteView.effects.rect = efGeometry;

Loading…
Cancel
Save