mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
js: Get monitor manager from backend
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2557>
This commit is contained in:
parent
8d68bdaaa1
commit
c1d66af4b9
9 changed files with 14 additions and 13 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/* exported getDefault */
|
||||
const { AccountsService, Clutter, Gdm, Gio, GLib, GObject, Meta } = imports.gi;
|
||||
const {AccountsService, Clutter, Gdm, Gio, GLib, GObject} = imports.gi;
|
||||
|
||||
const GnomeSession = imports.misc.gnomeSession;
|
||||
const LoginManager = imports.misc.loginManager;
|
||||
|
|
@ -149,7 +149,7 @@ const SystemActions = GObject.registerClass({
|
|||
|
||||
this._session = new GnomeSession.SessionManager();
|
||||
this._loginManager = LoginManager.getLoginManager();
|
||||
this._monitorManager = Meta.MonitorManager.get();
|
||||
this._monitorManager = global.backend.get_monitor_manager();
|
||||
|
||||
this._userManager = AccountsService.UserManager.get_default();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue