From 953ebc40a8e26a388c454f7b05c598d5690840bc Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 26 12月 2023 17:01:06 +0800 Subject: [PATCH] minor tweaks --- 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 0f88e1c..52cc5ef 100644 --- a/src/widgets/widgetwindowagent_win.cpp +++ b/src/widgets/widgetwindowagent_win.cpp @@ -45,7 +45,7 @@ ctx->setWindowAttribute(QStringLiteral("extra-margins"), defaultMargins); // Enable dark mode by default, otherwise the frame borders are white - ctx->setWindowAttribute(QStringLiteral("dark-mode"), true); + // ctx->setWindowAttribute(QStringLiteral("dark-mode"), true); ctx->installNativeEventFilter(this); ctx->installSharedEventFilter(this); @@ -148,7 +148,7 @@ // ignore it. if (event->type() == QEvent::Expose) { auto ee = static_cast<QExposeEvent *>(event); - if (window->isExposed() && !ee->region().isNull()) { + if (window->isExposed() && isNormalWindow() && !ee->region().isNull()) { resumeWindowEvent(window, event); return true; } -- Gitblit v1.9.1