diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 4a93545af..3470bf749 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -1073,18 +1073,13 @@ var LoginDialog = new Lang.Class({ _onTimedLoginRequested(client, userName, seconds) { this._startTimedLogin(userName, seconds); + // Restart timed login on user interaction global.stage.connect('captured-event', (actor, event) => { if (this._timedLoginDelay == undefined) return Clutter.EVENT_PROPAGATE; if (event.type() == Clutter.EventType.KEY_PRESS || event.type() == Clutter.EventType.BUTTON_PRESS) { - if (this._timedLoginBatch) { - this._timedLoginBatch.cancel(); - this._timedLoginBatch = null; - } - } else if (event.type() == Clutter.EventType.KEY_RELEASE || - event.type() == Clutter.EventType.BUTTON_RELEASE) { this._resetTimedLogin(); }