From fb2f286d3920e3551068c8df013aabfb56318bd3 Mon Sep 17 00:00:00 2001 From: hewenfei Date: Wed, 31 May 2023 17:30:01 +0800 Subject: [PATCH] =?UTF-8?q?x=E5=92=8Cwayland=E7=BB=9F=E4=B8=80=E4=BD=BF?= =?UTF-8?q?=E7=94=A8sdk=E6=8E=A5=E5=8F=A3=E8=AE=BE=E7=BD=AE=E8=B7=B3?= =?UTF-8?q?=E8=BF=87=E4=BB=BB=E5=8A=A1=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/windows/menu-main-window.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/windows/menu-main-window.cpp b/src/windows/menu-main-window.cpp index e1901ee..e440b03 100644 --- a/src/windows/menu-main-window.cpp +++ b/src/windows/menu-main-window.cpp @@ -102,12 +102,9 @@ void WindowHelper::setWindowAttribute(QWindow *window) // kwin KWindowSystem::setType(window->winId(), NET::Normal); - KWindowSystem::setState(window->winId(), NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher); - if (!QX11Info::isPlatformX11()) { - // wayland环境 设置跳过多任务视图,设置跳过任务栏s - kdk::WindowManager::setSkipTaskBar(window, true); - kdk::WindowManager::setSkipSwitcher(window, true); - } + // 设置跳过多任务视图,设置跳过任务栏 + kdk::WindowManager::setSkipTaskBar(window, true); + kdk::WindowManager::setSkipSwitcher(window, true); } void WindowHelper::removeHeaderBar(QWindow *window)