[gnome-shell/wip/fmuellner/ease-wm-animations: 2/5] environment: Respect enable-animations setting when easing



commit 6c7dcd5ffdddad47fbecde891a65e8659e1a856e
Author: Florian Müllner <fmuellner gnome org>
Date:   Sun Jun 11 02:00:11 2017 +0200

    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;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]