Skip to content

Commit

Permalink
WindowClone: Fix fade in overview (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 authored Jan 2, 2025
1 parent 6b306f4 commit 0991de2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Widgets/WindowClone.vala
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ public class Gala.WindowClone : Clutter.Actor {
update_hover_widgets (false);
toggle_shadow (false);
});

if (should_fade ()) {
new GesturePropertyTransition (this, gesture_tracker, "opacity", null, 0u).start (with_gesture);
}
}

/**
Expand Down Expand Up @@ -294,6 +298,7 @@ public class Gala.WindowClone : Clutter.Actor {
new GesturePropertyTransition (this, gesture_tracker, "y", intial_y, (float) rect.y).start (with_gesture);
new GesturePropertyTransition (this, gesture_tracker, "width", (float) initial_width, (float) rect.width).start (with_gesture);
new GesturePropertyTransition (this, gesture_tracker, "height", (float) initial_height, (float) rect.height).start (with_gesture);
new GesturePropertyTransition (this, gesture_tracker, "opacity", null, 255u).start (with_gesture);
new GesturePropertyTransition (this, gesture_tracker, "shadow-opacity", (uint8) 0, (uint8) 255).start (with_gesture);
new GesturePropertyTransition (window_icon, gesture_tracker, "opacity", 0u, 255u).start (with_gesture, () => {
update_hover_widgets (false);
Expand Down

0 comments on commit 0991de2

Please sign in to comment.