windowManager: Make sure to reset the resizePopup after using it

So that we'll recreate it the next time we want to show it. Otherwise,
we'll try to call things on a half-destroyed ResizePopup and end up
causing errors instead of showing the user their resize popup.
This commit is contained in:
Jasper St. Pierre 2015-01-02 09:27:52 -08:00
parent f585fee4cf
commit 897144baba

View File

@ -1561,8 +1561,10 @@ const WindowManager = new Lang.Class({
this._resizePopup.set(rect, displayW, displayH);
} else {
if (this._resizePopup)
if (this._resizePopup) {
this._resizePopup.destroy();
this._resizePopup = null;
}
}
},
});