From da4269bbd63c06d9cf2a182f30c9aed350d76cd0 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Fri, 23 Jul 2021 21:05:35 +0800 Subject: [PATCH] Minor tweaks Signed-off-by: Yuhang Zhao <2546789017@qq.com> --- framelesshelper_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framelesshelper_win32.cpp b/framelesshelper_win32.cpp index 03ccc79..85ac9d1 100644 --- a/framelesshelper_win32.cpp +++ b/framelesshelper_win32.cpp @@ -617,7 +617,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me // Prevent Windows from drawing the default title bar by temporarily // toggling the WS_VISIBLE style. SetWindowLongPtrW(msg->hwnd, GWL_STYLE, oldStyle & ~WS_VISIBLE); - const WId winId = window->winId(); + const auto winId = reinterpret_cast(msg->hwnd); Utilities::triggerFrameChange(winId); const LRESULT ret = DefWindowProcW(msg->hwnd, msg->message, msg->wParam, msg->lParam); SetWindowLongPtrW(msg->hwnd, GWL_STYLE, oldStyle);