From 4618e1140657af2ba528fc63b7137fb4592dfac8 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 15 Feb 2013 07:59:23 -0500 Subject: [PATCH] screenShield: Fix crash with the idle monitor --- js/ui/screenShield.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;