diff --git a/shell/scripting/scriptengine_v1.cpp b/shell/scripting/scriptengine_v1.cpp --- a/shell/scripting/scriptengine_v1.cpp +++ b/shell/scripting/scriptengine_v1.cpp @@ -383,6 +383,7 @@ panel->setMinimumLength(panelData.property("minimumLength").toNumber() * ScriptEngine::gridUnit()); panel->setOffset(panelData.property("offset").toNumber() * ScriptEngine::gridUnit()); panel->setAlignment(panelData.property("alignment").toString()); + panel->setHiding(panelData.property("hiding").toString()); // Loading the config for the panel loadSerializedConfigs(panel, panelData.property("config")); diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp --- a/shell/shellcorona.cpp +++ b/shell/shellcorona.cpp @@ -449,6 +449,21 @@ alignment == Qt::AlignRight ? "right" : alignment == Qt::AlignCenter ? "center" : "left"); + switch (view->visibilityMode()) { + case PanelView::AutoHide: + panelJson.insert("hiding", "autohide"); + break; + case PanelView::LetWindowsCover: + panelJson.insert("hiding", "windowscover"); + break; + case PanelView::WindowsGoBelow: + panelJson.insert("hiding", "windowsbelow"); + break; + case PanelView::NormalPanel: + default: + panelJson.insert("hiding", "normal"); + break; + } } // Saving the config keys