shell/global: Add 'backend' property

Replace all Meta.get_backend() with global.backend. Maybe sooner or
later we can further decrease the amount of singletons handled by
libmutter.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1210
This commit is contained in:
Jonas Ådahl
2020-04-21 18:04:56 +02:00
parent c90910731f
commit 772df91762
6 changed files with 21 additions and 9 deletions

View File

@ -11,8 +11,7 @@ class RemoteAccessApplet extends PanelMenu.SystemIndicator {
_init() {
super._init();
let backend = Meta.get_backend();
let controller = backend.get_remote_access_controller();
let controller = global.backend.get_remote_access_controller();
if (!controller)
return;