js: Get idle monitor from backend
Its ownership has moved from dangeling to owned by the backend, which has reflected the API is accessible by. Adapt to this change. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1838>
This commit is contained in:
@ -348,7 +348,7 @@ class UnlockDialogClock extends St.BoxLayout {
|
||||
this._powerModeChangedId = this._monitorManager.connect(
|
||||
'power-save-mode-changed', () => (this._hint.opacity = 0));
|
||||
|
||||
this._idleMonitor = Meta.IdleMonitor.get_core();
|
||||
this._idleMonitor = global.backend.get_core_idle_monitor();
|
||||
this._idleWatchId = this._idleMonitor.add_idle_watch(HINT_TIMEOUT * 1000, () => {
|
||||
this._hint.ease({
|
||||
opacity: 255,
|
||||
@ -594,7 +594,7 @@ var UnlockDialog = GObject.registerClass({
|
||||
this._otherUserButton);
|
||||
this.add_child(mainBox);
|
||||
|
||||
this._idleMonitor = Meta.IdleMonitor.get_core();
|
||||
this._idleMonitor = global.backend.get_core_idle_monitor();
|
||||
this._idleWatchId = this._idleMonitor.add_idle_watch(IDLE_TIMEOUT * 1000, this._escape.bind(this));
|
||||
|
||||
this.connect('destroy', this._onDestroy.bind(this));
|
||||
|
Reference in New Issue
Block a user