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

@ -176,7 +176,8 @@ class CapsLockWarning extends St.Label {
this.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this.clutter_text.line_wrap = true;
let seat = Clutter.get_default_backend().get_default_seat();
const backend = this.get_context().get_backend();
const seat = backend.get_default_seat();
this._keymap = seat.get_keymap();
this.connect('notify::mapped', () => {