Commit 901a9a23 authored by Xaver Hugl's avatar Xaver Hugl
Browse files

make the panelAutoHideHideRequested callback also handle panels set to "windows can cover"

parent 03b12d1d
...@@ -1538,8 +1538,10 @@ void XdgToplevelClient::installPlasmaShellSurface(PlasmaShellSurfaceInterface *s ...@@ -1538,8 +1538,10 @@ void XdgToplevelClient::installPlasmaShellSurface(PlasmaShellSurfaceInterface *s
workspace()->updateClientArea(); workspace()->updateClientArea();
}); });
connect(shellSurface, &PlasmaShellSurfaceInterface::panelAutoHideHideRequested, this, [this] { connect(shellSurface, &PlasmaShellSurfaceInterface::panelAutoHideHideRequested, this, [this] {
hideClient(true); if (m_plasmaShellSurface->panelBehavior() == PlasmaShellSurfaceInterface::PanelBehavior::AutoHide) {
m_plasmaShellSurface->hideAutoHidingPanel(); hideClient(true);
m_plasmaShellSurface->hideAutoHidingPanel();
}
updateShowOnScreenEdge(); updateShowOnScreenEdge();
}); });
connect(shellSurface, &PlasmaShellSurfaceInterface::panelAutoHideShowRequested, this, [this] { connect(shellSurface, &PlasmaShellSurfaceInterface::panelAutoHideShowRequested, this, [this] {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment