From 96552dfcb531053f4a331c2c80ecf5d8cb2aaf36 Mon Sep 17 00:00:00 2001 From: 某莔 <seiuryuu@gmail.com> Date: 周四, 28 12月 2023 22:55:40 +0800 Subject: [PATCH] fix: NSVisualEffectView --- src/widgets/widgetwindowagent_win.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/widgetwindowagent_win.cpp b/src/widgets/widgetwindowagent_win.cpp index d53bec5..72d0057 100644 --- a/src/widgets/widgetwindowagent_win.cpp +++ b/src/widgets/widgetwindowagent_win.cpp @@ -110,7 +110,7 @@ // When the window is inactive, there is a transparency bug in the top // border, and we need to extend the non-client area to the whole title // bar. - QRect frame = ctx->windowAttribute(QStringLiteral("title-bar-rect")).toRect(); + QRect frame = ctx->windowAttribute(QStringLiteral("window-rect")).toRect(); QMargins margins{0, -frame.top(), 0, 0}; ctx->setWindowAttribute(QStringLiteral("extra-margins"), QVariant::fromValue(margins)); } @@ -164,7 +164,7 @@ bool eventFilter(QObject *obj, QEvent *event) override { Q_UNUSED(obj) - + switch (event->type()) { case QEvent::UpdateRequest: { if (!isNormalWindow()) -- Gitblit v1.9.1