From 14bb73220b66fbcc595420478648e4c7dd55a039 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 11 Jun 2009 18:34:56 -0400 Subject: [PATCH] Increase priority of region-updating idle Increase the priority of the idle for updating work area and struts to META_PRIORITY_BEFORE_REDRAW. This prevents it from being starved by a constantly-redrawing client. http://bugzilla.gnome.org/show_bug.cgi?id=585500 --- js/ui/chrome.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/chrome.js b/js/ui/chrome.js index 8a962425f..59e541575 100644 --- a/js/ui/chrome.js +++ b/js/ui/chrome.js @@ -231,7 +231,8 @@ Chrome.prototype = { _queueUpdateRegions: function() { 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); }, _windowsRestacked: function() {