diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index e9301a9ef..0329381ae 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -771,7 +771,7 @@ const ScreenShield = new Lang.Class({ if (this._activationTime == 0) this._activationTime = GLib.get_monotonic_time(); - this._becameActiveId = this.idleMonitor.add_user_active_watch(this._onUserBecameActive); + this._becameActiveId = this.idleMonitor.add_user_active_watch(Lang.bind(this, this._onUserBecameActive)); let shouldLock = this._settings.get_boolean(LOCK_ENABLED_KEY) && !this._isLocked;