[gnome-shell] layout: Remove freezeUpdateRegions/thawUpdateRegions
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] layout: Remove freezeUpdateRegions/thawUpdateRegions
- Date: Wed, 20 Feb 2013 16:36:46 +0000 (UTC)
commit d5d517748c79b1b12f50bf66cc0e502b2071a925
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Feb 19 23:17:16 2013 -0500
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
js/ui/layout.js | 16 +---------------
1 files changed, 1 insertions(+), 15 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index f990853..81909f1 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -577,7 +577,6 @@ const LayoutManager = new Lang.Class({
},
_startupAnimationGreeter: function() {
- this._freezeUpdateRegions();
Tweener.addTween(this.panelBox,
{ translation_y: 0,
time: STARTUP_ANIMATION_TIME,
@@ -587,7 +586,6 @@ const LayoutManager = new Lang.Class({
},
_startupAnimationSession: function() {
- this._freezeUpdateRegions();
this._createPrimaryBackground();
Tweener.addTween(this.uiGroup,
{ scale_x: 1,
@@ -615,7 +613,6 @@ const LayoutManager = new Lang.Class({
this._createSecondaryBackgrounds();
this.emit('panel-box-changed');
- this._thawUpdateRegions();
},
showKeyboard: function () {
@@ -832,22 +829,11 @@ const LayoutManager = new Lang.Class({
if (Main.sessionMode.isGreeter)
return;
- if (!this._updateRegionIdle && !this._freezeUpdateCount)
+ if (!this._updateRegionIdle)
this._updateRegionIdle = Mainloop.idle_add(Lang.bind(this, this._updateRegions),
Meta.PRIORITY_BEFORE_REDRAW);
},
- _freezeUpdateRegions: function() {
- if (this._updateRegionIdle)
- this._updateRegions();
- this._freezeUpdateCount++;
- },
-
- _thawUpdateRegions: function() {
- this._freezeUpdateCount--;
- this._queueUpdateRegions();
- },
-
_getWindowActorsForWorkspace: function(workspace) {
return global.get_window_actors().filter(function (actor) {
let win = actor.meta_window;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]