dock: restore strut management
When configured not to auto-hide, the dock should modify struts so that it doesn't cover maximized windows.
This commit is contained in:
@@ -381,7 +381,8 @@ Dock.prototype = {
|
||||
this._overviewHiddenId = Main.overview.connect('hidden', Lang.bind(this, function() {
|
||||
this.actor.show();
|
||||
}));
|
||||
Main.layoutManager.addChrome(this.actor);
|
||||
Main.layoutManager.addChrome(this.actor,
|
||||
{ affectsStruts: !this._settings.get_boolean(DOCK_HIDE_KEY) });
|
||||
|
||||
//hidden
|
||||
this._settings.connect('changed::'+DOCK_POSITION_KEY, Lang.bind(this, function (){
|
||||
@@ -406,6 +407,10 @@ Dock.prototype = {
|
||||
if (!this._settings)
|
||||
return;
|
||||
|
||||
Main.layoutManager.removeChrome(this.actor);
|
||||
Main.layoutManager.addChrome(this.actor,
|
||||
{ affectsStruts: !this._settings.get_boolean(DOCK_HIDE_KEY) });
|
||||
|
||||
hideable = this._settings.get_boolean(DOCK_HIDE_KEY);
|
||||
if (hideable){
|
||||
hideDock=false;
|
||||
|
||||
Reference in New Issue
Block a user