From 6ec81e98fe4f97aa1cf9e78408f69db9843c5ff9 Mon Sep 17 00:00:00 2001 From: sunzhen Date: Mon, 22 Jan 2024 16:07:58 +0800 Subject: [PATCH] Fix ISSUE#I73IWR --- src/windows/menu-main-window.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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