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:
parent
94f12fa764
commit
6c7dcd5ffd
@ -58,6 +58,8 @@ function _patchLayoutClass(layoutClass, styleProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _adjustEasingTime(msecs) {
|
function _adjustEasingTime(msecs) {
|
||||||
|
if (!St.Settings.get().enable_animations)
|
||||||
|
return 1;
|
||||||
return St.get_slow_down_factor() * msecs;
|
return St.get_slow_down_factor() * msecs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user