fix:兼容wlcom授权窗口置顶

This commit is contained in:
yangmin100 2024-11-13 19:45:37 +08:00
parent e6b5d82b03
commit cd170f89c6
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ bool MainWindow::eventFilter(QObject *obj, QEvent *event)
} else if (obj == this) {
if (event->type() == QEvent::Show || event->type() == QEvent::UpdateRequest) {
if (QString(qgetenv("XDG_SESSION_TYPE")) == "wayland") {
WindowManager::setWindowLayer(this->windowHandle(), WindowLayer::Switcher + 1);
WindowManager::setWindowLayer(this->windowHandle(), (kdk::WindowLayer)15);
}
}
}