diff --git a/src/windows/menu-main-window.cpp b/src/windows/menu-main-window.cpp index 62d2ea8..ffaf8e0 100644 --- a/src/windows/menu-main-window.cpp +++ b/src/windows/menu-main-window.cpp @@ -28,6 +28,7 @@ #include #include #include +#include // kysdk #include @@ -496,7 +497,6 @@ void MenuWindow::exposeEvent(QExposeEvent *event) if (QX11Info::isPlatformX11()) { requestActivate(); } - WindowHelper::setWindowAttribute(this); // WindowHelper::removeHeaderBar(this); updateGeometry(); } @@ -531,6 +531,8 @@ void MenuWindow::showEvent(QShowEvent *event) //为了主动触发一次updaterequet事件 update(); QQuickView::showEvent(event); + QTimer::singleShot(1,this,[=](){WindowHelper::setWindowAttribute(this);}); + } bool MenuWindow::effectEnabled() const