layout: Remove freezeUpdateRegions/thawUpdateRegions

Due to a bad rebase causing freezeUpdateCount to never get initialized,
these functions effectively did nothing. Since we're going to go to a
different mechanism for freezing region updates, let's just tear these
out now instead of fixing them before tearing them out.

https://bugzilla.gnome.org/show_bug.cgi?id=694227
This commit is contained in:
Jasper St. Pierre 2013-02-19 23:17:16 -05:00
parent de3d3c15a5
commit d5d517748c

View File

@ -577,7 +577,6 @@ const LayoutManager = new Lang.Class({
}, },
_startupAnimationGreeter: function() { _startupAnimationGreeter: function() {
this._freezeUpdateRegions();
Tweener.addTween(this.panelBox, Tweener.addTween(this.panelBox,
{ translation_y: 0, { translation_y: 0,
time: STARTUP_ANIMATION_TIME, time: STARTUP_ANIMATION_TIME,
@ -587,7 +586,6 @@ const LayoutManager = new Lang.Class({
}, },
_startupAnimationSession: function() { _startupAnimationSession: function() {
this._freezeUpdateRegions();
this._createPrimaryBackground(); this._createPrimaryBackground();
Tweener.addTween(this.uiGroup, Tweener.addTween(this.uiGroup,
{ scale_x: 1, { scale_x: 1,
@ -615,7 +613,6 @@ const LayoutManager = new Lang.Class({
this._createSecondaryBackgrounds(); this._createSecondaryBackgrounds();
this.emit('panel-box-changed'); this.emit('panel-box-changed');
this._thawUpdateRegions();
}, },
showKeyboard: function () { showKeyboard: function () {
@ -832,22 +829,11 @@ const LayoutManager = new Lang.Class({
if (Main.sessionMode.isGreeter) if (Main.sessionMode.isGreeter)
return; return;
if (!this._updateRegionIdle && !this._freezeUpdateCount) if (!this._updateRegionIdle)
this._updateRegionIdle = Mainloop.idle_add(Lang.bind(this, this._updateRegions), this._updateRegionIdle = Mainloop.idle_add(Lang.bind(this, this._updateRegions),
Meta.PRIORITY_BEFORE_REDRAW); Meta.PRIORITY_BEFORE_REDRAW);
}, },
_freezeUpdateRegions: function() {
if (this._updateRegionIdle)
this._updateRegions();
this._freezeUpdateCount++;
},
_thawUpdateRegions: function() {
this._freezeUpdateCount--;
this._queueUpdateRegions();
},
_getWindowActorsForWorkspace: function(workspace) { _getWindowActorsForWorkspace: function(workspace) {
return global.get_window_actors().filter(function (actor) { return global.get_window_actors().filter(function (actor) {
let win = actor.meta_window; let win = actor.meta_window;