[gnome-shell/wip/fmuellner/ease-actors: 2/6] environment: Respect enable-animations setting when easing
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/ease-actors: 2/6] environment: Respect enable-animations setting when easing
- Date: Thu, 8 Feb 2018 20:08:54 +0000 (UTC)
commit 148932bd4ed8f8366cd19c121db2c7166e969900
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.
js/ui/environment.js | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/js/ui/environment.js b/js/ui/environment.js
index 3f56aeeff..a3a0623d4 100644
--- a/js/ui/environment.js
+++ b/js/ui/environment.js
@@ -64,6 +64,8 @@ function _patchLayoutClass(layoutClass, styleProps) {
}
function _adjustEasingTime(msecs) {
+ if (!Gtk.Settings.get_default().gtk_enable_animations)
+ return 0;
return St.get_slow_down_factor() * msecs;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]