fix:兼容wlcom授权窗口置顶
This commit is contained in:
parent
e6b5d82b03
commit
cd170f89c6
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue