File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments