ScreenShield: fix a typo due to the MetaCursorTracker switch

And replace another show_cursor() usage with the new API.

Reviewed-by: Carlos Soriano in IRC.
This commit is contained in:
Giovanni Campagna 2013-09-12 13:04:47 +02:00
parent 135727c9f7
commit 3e8ab0645b

View File

@ -1087,15 +1087,15 @@ const ScreenShield = new Lang.Class({
this._checkArrowAnimation();
let motionId = global.stage.connect('captured-event', function(stage, event) {
let motionId = global.stage.connect('captured-event', Lang.bind(this, function(stage, event) {
if (event.type() == Clutter.EventType.MOTION) {
global.stage.show_cursor();
this._cursorTracker.set_pointer_visible(true);
global.stage.disconnect(motionId);
}
return false;
});
this._cursorTracker.set_pointer_tracker(false);
}));
this._cursorTracker.set_pointer_visible(false);
this._lockScreenState = MessageTray.State.SHOWN;
this._lockScreenGroup.fixed_position_set = false;