From 6085dd3a47f5a68889367c6beb7602b8d70c8cf7 Mon Sep 17 00:00:00 2001 From: hewenfei Date: Tue, 1 Aug 2023 16:41:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=B8=BB=E7=AA=97=E5=8F=A3):=20=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1expose=E4=BA=8B=E4=BB=B6=E6=97=B6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E7=B1=BB=E5=9E=8B=E5=92=8C=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/windows/menu-main-window.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/windows/menu-main-window.cpp b/src/windows/menu-main-window.cpp index 36acd83..cf19fb4 100644 --- a/src/windows/menu-main-window.cpp +++ b/src/windows/menu-main-window.cpp @@ -493,11 +493,10 @@ void MenuWindow::exposeEvent(QExposeEvent *event) if (isExposed()) { if (QX11Info::isPlatformX11()) { requestActivate(); - } else { - WindowHelper::setWindowAttribute(this); -// WindowHelper::removeHeaderBar(this); - updateGeometry(); } + WindowHelper::setWindowAttribute(this); +// WindowHelper::removeHeaderBar(this); + updateGeometry(); } QQuickView::exposeEvent(event); }