win: fix regression

This commit is contained in:
Yuhang Zhao 2023-08-07 17:41:15 +08:00
parent 95e0062264
commit 2035fed510
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
}
const auto windowId = reinterpret_cast<WId>(hWnd);
// Let's be extra safe.
if (!Utils::isValidWindow(windowId, true, true)) {
if (!Utils::isValidWindow(windowId, false, true)) {
return false;
}
const UINT uMsg = msg->message;