From b7bd93c567c0acd1f595343951bc10a649a49d0a Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 28 Jul 2020 23:40:43 +0200 Subject: [PATCH] Makes the panelAutoHideHideCallback also handle panels set to "windows can cover" --- src/wayland/plasmashell_interface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/plasmashell_interface.cpp b/src/wayland/plasmashell_interface.cpp index 7de99313f8..758e3fa1f2 100644 --- a/src/wayland/plasmashell_interface.cpp +++ b/src/wayland/plasmashell_interface.cpp @@ -273,7 +273,7 @@ void PlasmaShellSurfaceInterface::Private::panelAutoHideHideCallback(wl_client * { auto s = cast(resource); Q_ASSERT(client == *s->client); - if (s->m_role != Role::Panel || s->m_panelBehavior != PanelBehavior::AutoHide) { + if (s->m_role != Role::Panel || (s->m_panelBehavior != PanelBehavior::AutoHide && s->m_panelBehavior != PanelBehavior::WindowsCanCover)) { wl_resource_post_error(s->resource, ORG_KDE_PLASMA_SURFACE_ERROR_PANEL_NOT_AUTO_HIDE, "Not an auto hide panel"); return; }