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:
parent
394121f77d
commit
4b42879a2c
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user