Do not reset window zoom when leaving the overview

https://bugzilla.gnome.org/show_bug.cgi?id=598319
This commit is contained in:
Florian Müllner 2010-01-06 02:19:09 +01:00
parent 45e89bf34a
commit 341b9a80c5

View File

@ -220,7 +220,6 @@ WindowClone.prototype = {
this._zoomTarget.setPosition(this.actor.x - (this.actor.width - width) / 2, this.actor.y - (this.actor.height - height) / 2); this._zoomTarget.setPosition(this.actor.x - (this.actor.width - width) / 2, this.actor.y - (this.actor.height - height) / 2);
this._zoomStep = 0; this._zoomStep = 0;
this._hideEventId = Main.overview.connect('hiding', Lang.bind(this, function () { this._zoomEnd(); }));
this._zoomUpdate(); this._zoomUpdate();
}, },
@ -235,7 +234,6 @@ WindowClone.prototype = {
[this.actor.scale_x, this.actor.scale_y] = this._zoomLocalOrig.getScale(); [this.actor.scale_x, this.actor.scale_y] = this._zoomLocalOrig.getScale();
this._zoomLightbox.destroy(); this._zoomLightbox.destroy();
Main.overview.disconnect(this._hideEventId);
this._zoomLocalPosition = undefined; this._zoomLocalPosition = undefined;
this._zoomLocalScale = undefined; this._zoomLocalScale = undefined;