Skip to content

Commit a042301

Browse files
committed
Cleanup notification close animation
1 parent d11be69 commit a042301

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

src/NotificationStack.vala

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,13 @@ public class Gala.NotificationStack : Object {
164164
}
165165

166166
public void destroy_notification (Meta.WindowActor notification) {
167-
if (Meta.Prefs.get_gnome_animations ()) {
168-
notification.save_easing_state ();
169-
notification.set_easing_duration (100);
170-
notification.set_easing_mode (Clutter.AnimationMode.EASE_IN_QUAD);
171-
notification.opacity = 0;
167+
notification.save_easing_state ();
168+
notification.set_easing_duration (Utils.get_animation_duration (AnimationDuration.CLOSE));
169+
notification.set_easing_mode (Clutter.AnimationMode.EASE_IN_QUAD);
170+
notification.opacity = 0;
172171

173-
notification.x += stack_width;
174-
notification.restore_easing_state ();
175-
} else {
176-
notification.opacity = 0;
177-
notification.x += stack_width;
178-
}
172+
notification.x += stack_width;
173+
notification.restore_easing_state ();
179174

180175
notifications.remove (notification);
181176
update_positions ();

0 commit comments

Comments
 (0)