Changeset 653

Show
Ignore:
Timestamp:
2007-11-26 18:44:07 (1 year ago)
Author:
MaierMan
Message:

#383: Display tooltip only when the Manager has focus

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/manager/tree.js

    r647 r653  
    328328        }, 
    329329        _hoverItem: null, 
     330        _ww: Components.classes["@mozilla.org/embedcomp/window-watcher;1"] 
     331                                .getService(Components.interfaces.nsIWindowWatcher), 
    330332        hovering: function(event) { 
    331                 if (!Prefs.showTooltip) { 
     333                if (!Prefs.showTooltip || this._ww.activeWindow != window) { 
    332334                        return; 
    333335                } 
     
    335337        }, 
    336338        showTip: function(event) { 
    337                 if (!Prefs.showTooltip || !this._hoverItem) { 
     339                if (!Prefs.showTooltip || !this._hoverItem || this._ww.activeWindow != window) { 
    338340                        return false; 
    339341                }