Get ClutterBackend/CoglContext from the Actor/Texture

Avoids going through the global backend helper.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3528>
This commit is contained in:
Bilal Elmoussaoui
2024-12-30 14:07:57 +01:00
committed by Marge Bot
parent dee6cf3f6b
commit fea29eb490
11 changed files with 43 additions and 32 deletions

View File

@ -347,7 +347,8 @@ class UnlockDialogClock extends St.BoxLayout {
this._wallClock = new GnomeDesktop.WallClock({time_only: true});
this._wallClock.connect('notify::clock', this._updateClock.bind(this));
this._seat = Clutter.get_default_backend().get_default_seat();
const backend = this.get_context().get_backend();
this._seat = backend.get_default_seat();
this._seat.connectObject('notify::touch-mode',
this._updateHint.bind(this), this);