From 6c7dcd5ffdddad47fbecde891a65e8659e1a856e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Sun, 11 Jun 2017 02:00:11 +0200 Subject: [PATCH] environment: Respect enable-animations setting when easing In addition to the slow down factor, we want implicit animations to follow GTK+'s enable-animations setting as well. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/22 --- js/ui/environment.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/environment.js b/js/ui/environment.js index 264c0dae2..eeae4bce8 100644 --- a/js/ui/environment.js +++ b/js/ui/environment.js @@ -58,6 +58,8 @@ function _patchLayoutClass(layoutClass, styleProps) { } function _adjustEasingTime(msecs) { + if (!St.Settings.get().enable_animations) + return 1; return St.get_slow_down_factor() * msecs; }