update inputgeometry when sliding in/out

--this way mouse clicks correspond much better
in how they should behave. For example right
clicks do not forward always the events to the
desktop during sliding.
work/m_layershell
Michail Vourlakos 3 years ago
parent 4d3c491b84
commit 11942660fb

@ -310,7 +310,17 @@ Item{
if (updateIsEnabled) {
var animated = (animations.needBothAxis.count>0);
if (!LatteCore.WindowSystem.compositingActive || animated || latteView.behaveAsPlasmaPanel) {
if (animated) {
//! clear input mask
latteView.effects.inputMask = Qt.rect(0, 0, -1, -1);
} else {
updateInputGeometry();
}
}
}
function updateInputGeometry() {
if (!LatteCore.WindowSystem.compositingActive || latteView.behaveAsPlasmaPanel) {
//! clear input mask
latteView.effects.inputMask = Qt.rect(0, 0, -1, -1);
} else {
@ -372,7 +382,6 @@ Item{
latteView.effects.inputMask = inputGeometry;
}
}
}
Loader{
anchors.fill: parent
@ -458,6 +467,7 @@ Item{
}
latteView.visibility.slideOutFinished();
manager.updateInputGeometry();
}
function init() {
@ -491,6 +501,7 @@ Item{
onStarted: {
latteView.visibility.show();
manager.updateInputGeometry();
if (debug.maskEnabled) {
console.log("showing animation started...");

Loading…
Cancel
Save