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
This commit is contained in:
Florian Müllner 2017-06-11 02:00:11 +02:00
parent 94f12fa764
commit 6c7dcd5ffd

View File

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