Apply autoHide mode only for the active window

This commit is contained in:
YUKI Hiroshi 2015-03-03 19:49:34 +09:00
parent af8a061ca1
commit 67fcb13e05

View File

@ -1425,9 +1425,11 @@ AutoHideWindow.prototype = inherit(AutoHideConstants, {
utils.getTreePref(toggleKey) :
AutoHideBrowser.prototype.kMODE_DISABLED ;
utils.setTreePref(key, mode);
b.setAttribute(AutoHideBrowser.prototype.kMODE+'-'+(w.fullScreen ? 'fullscreen' : 'normal' ), mode);
b.treeStyleTab.autoHide.updateMode();
this.treeStyleTab.setPrefForActiveWindow(function() {
utils.setTreePref(key, mode);
b.setAttribute(AutoHideBrowser.prototype.kMODE+'-'+(w.fullScreen ? 'fullscreen' : 'normal' ), mode);
b.treeStyleTab.autoHide.updateMode();
});
},
restoreLastState: function AHW_restoreLastState()