layout: Don't bother updating the regions in the greeter

The greeter is always full-screen, so this should never matter.

https://bugzilla.gnome.org/show_bug.cgi?id=694227
This commit is contained in:
Jasper St. Pierre 2013-02-19 21:06:33 -05:00
parent 3db253998b
commit de3d3c15a5

View File

@ -829,6 +829,9 @@ const LayoutManager = new Lang.Class({
}, },
_queueUpdateRegions: function() { _queueUpdateRegions: function() {
if (Main.sessionMode.isGreeter)
return;
if (!this._updateRegionIdle && !this._freezeUpdateCount) if (!this._updateRegionIdle && !this._freezeUpdateCount)
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);