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) : utils.getTreePref(toggleKey) :
AutoHideBrowser.prototype.kMODE_DISABLED ; AutoHideBrowser.prototype.kMODE_DISABLED ;
utils.setTreePref(key, mode); this.treeStyleTab.setPrefForActiveWindow(function() {
b.setAttribute(AutoHideBrowser.prototype.kMODE+'-'+(w.fullScreen ? 'fullscreen' : 'normal' ), mode); utils.setTreePref(key, mode);
b.treeStyleTab.autoHide.updateMode(); b.setAttribute(AutoHideBrowser.prototype.kMODE+'-'+(w.fullScreen ? 'fullscreen' : 'normal' ), mode);
b.treeStyleTab.autoHide.updateMode();
});
}, },
restoreLastState: function AHW_restoreLastState() restoreLastState: function AHW_restoreLastState()