[gnome-shell/wip/rstrode/login-screen-extensions: 101/134] main: Inhibit animations if X server advertises VNC-EXTENSION
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/rstrode/login-screen-extensions: 101/134] main: Inhibit animations if X server advertises VNC-EXTENSION
- Date: Thu, 26 Aug 2021 19:31:01 +0000 (UTC)
commit b1a9af12ca04ec045c6aa59e4910bf467f76490f
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Oct 1 12:03:52 2019 +0200
main: Inhibit animations if X server advertises VNC-EXTENSION
This was previously done by gsd-xsettings to disable animations when
running in Xvnc.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/757
js/ui/main.js | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/js/ui/main.js b/js/ui/main.js
index 3c72c38d47..64a416267d 100644
--- a/js/ui/main.js
+++ b/js/ui/main.js
@@ -735,5 +735,12 @@ var AnimationsSettings = class {
St.Settings.get().inhibit_animations();
return;
}
+
+ let isXvnc = Shell.util_has_x11_display_extension(
+ global.display, 'VNC-EXTENSION');
+ if (isXvnc) {
+ St.Settings.get().inhibit_animations();
+ return;
+ }
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]