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:
parent
8dfea9566e
commit
651030ba93
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user