Skip to content

Commit d6c8697

Browse files
committed
windowManager.js: Fix traditional mapping effect.
The traditional effect involves no position change and was leaving shadows an undefined state under certain conditions. A GtkDialog being shown using gtk_dialog_run was one particular case. A small position change in the map effect avoids the issue. Fixes #853, #854 (probably) Ref: linuxmint/mint21-beta#35 linuxmint/mint21-beta#120
1 parent 20e51ac commit d6c8697

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/ui/windowManager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,6 +870,7 @@ var WindowManager = class WindowManager {
870870
{
871871
actor.orig_opacity = actor.opacity;
872872
actor.set_pivot_point(0.5, 0.5);
873+
actor.x -= 1;
873874
actor.scale_x = 0.94;
874875
actor.scale_y = 0.94;
875876
actor.opacity = 0;
@@ -881,6 +882,7 @@ var WindowManager = class WindowManager {
881882
opacity: actor.orig_opacity,
882883
scale_x: 1,
883884
scale_y: 1,
885+
x: actor.x + 1,
884886
duration: time * EASING_MULTIPLIER,
885887
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
886888
onStopped: () => this._mapWindowDone(cinnamonwm, actor),

0 commit comments

Comments
 (0)