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
This commit is contained in:
Jonas Ådahl 2019-10-01 12:03:52 +02:00
parent 394121f77d
commit 4b42879a2c

View File

@ -768,5 +768,12 @@ var AnimationsSettings = class {
St.Settings.get().inhibit_animations(); St.Settings.get().inhibit_animations();
return; return;
} }
let isXvnc = Shell.util_has_x11_display_extension(
global.display, 'VNC-EXTENSION');
if (isXvnc) {
St.Settings.get().inhibit_animations();
return;
}
} }
}; };