[gnome-shell] Increase priority of region-updating idle



commit 14bb73220b66fbcc595420478648e4c7dd55a039
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Jun 11 18:34:56 2009 -0400

    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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/chrome.js b/js/ui/chrome.js
index 8a96242..59e5415 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() {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]