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:

committed by
Marge Bot

parent
dee6cf3f6b
commit
fea29eb490
@ -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', () => {
|
||||
|
Reference in New Issue
Block a user