forked from openkylin/ukui-menu
x和wayland统一使用sdk接口设置跳过任务栏
This commit is contained in:
parent
b22b504ea6
commit
fb2f286d39
|
@ -102,12 +102,9 @@ void WindowHelper::setWindowAttribute(QWindow *window)
|
||||||
|
|
||||||
// kwin
|
// kwin
|
||||||
KWindowSystem::setType(window->winId(), NET::Normal);
|
KWindowSystem::setType(window->winId(), NET::Normal);
|
||||||
KWindowSystem::setState(window->winId(), NET::SkipTaskbar | NET::SkipPager | NET::SkipSwitcher);
|
// 设置跳过多任务视图,设置跳过任务栏
|
||||||
if (!QX11Info::isPlatformX11()) {
|
kdk::WindowManager::setSkipTaskBar(window, true);
|
||||||
// wayland环境 设置跳过多任务视图,设置跳过任务栏s
|
kdk::WindowManager::setSkipSwitcher(window, true);
|
||||||
kdk::WindowManager::setSkipTaskBar(window, true);
|
|
||||||
kdk::WindowManager::setSkipSwitcher(window, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindowHelper::removeHeaderBar(QWindow *window)
|
void WindowHelper::removeHeaderBar(QWindow *window)
|
||||||
|
|
Loading…
Reference in New Issue