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

This commit is contained in:
Xaver Hugl 2020-07-28 23:34:58 +02:00
parent 03b12d1dfc
commit 901a9a2373

View file

@ -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] {