layout: Fix an accidental undefined variable error

The layout code was using actorData without defining it first.

https://bugzilla.gnome.org/show_bug.cgi?id=673189
This commit is contained in:
Jasper St. Pierre 2012-03-27 15:08:54 -03:00
parent 8dfea9566e
commit 651030ba93

View File

@ -781,10 +781,13 @@ const Chrome = new Lang.Class({
_actorReparented: function(actor, oldParent) {
let newParent = actor.get_parent();
if (!newParent)
if (!newParent) {
this._untrackActor(actor);
else
} else {
let i = this._findActor(actor);
let actorData = this._trackedActors[i];
actorData.isToplevel = (newParent == Main.uiGroup);
}
},
_updateVisibility: function() {