From 54623b054721d42db721d0ba7429b6f8878fc1a5 Mon Sep 17 00:00:00 2001 From: Sine Striker <trueful@163.com> Date: 周二, 26 12月 2023 02:44:18 +0800 Subject: [PATCH] minor tweaks --- src/widgets/widgetwindowagent_win.cpp | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/widgetwindowagent_win.cpp b/src/widgets/widgetwindowagent_win.cpp index 3eb6beb..2733f94 100644 --- a/src/widgets/widgetwindowagent_win.cpp +++ b/src/widgets/widgetwindowagent_win.cpp @@ -58,7 +58,7 @@ if (LOWORD(msg->wParam) == WA_INACTIVE) { // https://github.com/microsoft/terminal/blob/71a6f26e6ece656084e87de1a528c4a8072eeabd/src/cascadia/WindowsTerminal/NonClientIslandWindow.cpp#L904 // When the window is inactive, there is a transparency bug in the top - // border and we needs to extend the non-client area to the whole title + // border, and we need to extend the non-client area to the whole title // bar. QRect frame = ctx->windowAttribute(QStringLiteral("title-bar-rect")).toRect(); @@ -100,7 +100,7 @@ static_cast<HackedWindow *>(window)->event(event); // Upon receiving the WM_PAINT message, Qt will redraw the entire view, and we - // must wait for it to finish redrawing before drawing this top border area + // must wait for it to finish redrawing before drawing this top border area. ctx->virtual_hook(AbstractWindowContext::DrawWindows10BorderHook2, nullptr); return true; } @@ -126,7 +126,7 @@ // Due to the timer or user action, Qt will redraw some regions spontaneously, // even if there is no WM_PAINT message, we must wait for it to finish redrawing - // and then update the upper border area + // and then update the top border area. ctx->virtual_hook(AbstractWindowContext::DrawWindows10BorderHook2, nullptr); return true; } -- Gitblit v1.9.1