[gnome-shell/wip/rstrode/login-screen-extensions: 100/134] main: Inhibit animations when software rendered
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/login-screen-extensions: 100/134] main: Inhibit animations when software rendered
- Date: Thu, 26 Aug 2021 19:31:01 +0000 (UTC)
commit 7f8c0f932af10062cac3d9d3bb22c9cbd834fdde
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Oct 1 12:02:31 2019 +0200
main: Inhibit animations when software rendered
This was previously decided by gsd-xsettings.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/757
js/ui/main.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index f472f736f4..3c72c38d47 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -148,6 +148,8 @@ function _initializeUI() {
_loadOskLayouts();
_loadDefaultStylesheet();
+ new AnimationsSettings();
+
// Setup the stage hierarchy early
layoutManager = new Layout.LayoutManager();
@@ -725,3 +727,13 @@ function showRestartMessage(message) {
let restartMessage = new RestartMessage(message);
restartMessage.open();
}
+
+var AnimationsSettings = class {
+ constructor() {
+ let backend = Meta.get_backend();
+ if (!backend.is_rendering_hardware_accelerated()) {
+ St.Settings.get().inhibit_animations();
+ return;
+ }
+ }
+};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]