ScreenShield: remove obsolete comment and hack
We don't need to wait to until the stage window is mapped to take the modal grab, because that code now runs in a startup-prepared signal handler, which in turn runs some time after the mainloop has started and well after the stage window is mapped. https://bugzilla.gnome.org/show_bug.cgi?id=711682
This commit is contained in:
parent
a0bd4a02e4
commit
cd4eda8bef
@ -902,18 +902,12 @@ const ScreenShield = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
showDialog: function() {
|
showDialog: function() {
|
||||||
// Ensure that the stage window is mapped, before taking a grab
|
|
||||||
// otherwise X errors out
|
|
||||||
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() {
|
|
||||||
if (!this._becomeModal()) {
|
if (!this._becomeModal()) {
|
||||||
// In the login screen, this is a hard error. Fail-whale
|
// In the login screen, this is a hard error. Fail-whale
|
||||||
log('Could not acquire modal grab for the login screen. Aborting login process.');
|
log('Could not acquire modal grab for the login screen. Aborting login process.');
|
||||||
Meta.quit(Meta.ExitCode.ERROR);
|
Meta.quit(Meta.ExitCode.ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}));
|
|
||||||
|
|
||||||
this.actor.show();
|
this.actor.show();
|
||||||
this._isGreeter = Main.sessionMode.isGreeter;
|
this._isGreeter = Main.sessionMode.isGreeter;
|
||||||
this._isLocked = true;
|
this._isLocked = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user