Commit c16099f9 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

effects/maximize: Prevent playing animation for invisible windows

If an invisible window is animated, e.g. minimized window, the maximize
effect will temporarily make it visible in order to play the animation,
which is unexpected.


(cherry picked from commit 6ba44dee)
parent dd18edce
Pipeline #241472 failed with stage
in 13 minutes and 59 seconds
......@@ -27,6 +27,9 @@ class MaximizeEffect {
}
onWindowMaximizedStateAboutToChange(window) {
if (!window.visible) {
return;
}
if (window.maximizeAnimation1) {
cancel(window.maximizeAnimation1);
delete window.maximizeAnimation1;
......@@ -50,7 +53,7 @@ class MaximizeEffect {
}
onWindowMaximizedStateChanged(window) {
if (!window.oldGeometry) {
if (!window.visible || !window.oldGeometry) {
return;
}
window.setData(Effect.WindowForceBlurRole, true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment