From 901a9a2373f3ea474d8e5c40a1e8cc5e03649172 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 28 Jul 2020 23:34:58 +0200 Subject: [PATCH] make the panelAutoHideHideRequested callback also handle panels set to "windows can cover" --- xdgshellclient.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xdgshellclient.cpp b/xdgshellclient.cpp index d0cf8f0554..3a527b9225 100644 --- a/xdgshellclient.cpp +++ b/xdgshellclient.cpp @@ -1538,8 +1538,10 @@ void XdgToplevelClient::installPlasmaShellSurface(PlasmaShellSurfaceInterface *s workspace()->updateClientArea(); }); connect(shellSurface, &PlasmaShellSurfaceInterface::panelAutoHideHideRequested, this, [this] { - hideClient(true); - m_plasmaShellSurface->hideAutoHidingPanel(); + if (m_plasmaShellSurface->panelBehavior() == PlasmaShellSurfaceInterface::PanelBehavior::AutoHide) { + hideClient(true); + m_plasmaShellSurface->hideAutoHidingPanel(); + } updateShowOnScreenEdge(); }); connect(shellSurface, &PlasmaShellSurfaceInterface::panelAutoHideShowRequested, this, [this] {