locatePointer: Mark the animation as required

When the accessibility option "Reduce Animation" is turned on, the
accessibility option "Locate Pointer" stops to work. This is because
the animation is not marked as required. Mark it as such.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7472
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2986>
This commit is contained in:
Alessandro Bono
2023-10-20 22:00:59 +02:00
committed by Marge Bot
parent fc7e2bc65b
commit 31509e55ca

View File

@ -18,7 +18,7 @@ export class LocatePointer {
return;
if (enabled) {
this._ripples = new Ripples.Ripples(0.5, 0.5, 'ripple-pointer-location');
this._ripples = new Ripples.Ripples(0.5, 0.5, 'ripple-pointer-location', true);
this._ripples.addTo(Main.uiGroup);
} else {
this._ripples.destroy();