Skip to content

Commit 0991de2

Browse files
authored
WindowClone: Fix fade in overview (#2205)
1 parent 6b306f4 commit 0991de2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Widgets/WindowClone.vala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,10 @@ public class Gala.WindowClone : Clutter.Actor {
266266
update_hover_widgets (false);
267267
toggle_shadow (false);
268268
});
269+
270+
if (should_fade ()) {
271+
new GesturePropertyTransition (this, gesture_tracker, "opacity", null, 0u).start (with_gesture);
272+
}
269273
}
270274

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

0 commit comments

Comments
 (0)