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)