Revert "screenShield: Connect to the actor's show signal instead of using BEFORE_REDRAW"

This reverts commit bdeb7d86b6.

git bz PEBKAC
This commit is contained in:
Ray Strode 2012-10-24 10:17:43 -04:00
parent 3a453c5f73
commit 599f2f43e3

View File

@ -580,14 +580,13 @@ const ScreenShield = new Lang.Class({
showDialog: function() { showDialog: function() {
// Ensure that the stage window is mapped, before taking a grab // Ensure that the stage window is mapped, before taking a grab
// otherwise X errors out // otherwise X errors out
let actorShownId = 0; Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this, function() {
actorShownId = this.actor.connect('show', Lang.bind(this, function() {
if (!this._isModal) { if (!this._isModal) {
Main.pushModal(this.actor); Main.pushModal(this.actor);
this._isModal = true; this._isModal = true;
} }
this.actor.disconnect(actorShownId); return false;
})); }));
this.actor.show(); this.actor.show();