forked from github_mirror/framelesshelper
win: fix a rare bug
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
32d29e39f6
commit
378f59f462
|
@ -1452,6 +1452,7 @@ void Utils::maybeFixupQtInternals(const WId windowId)
|
|||
} else {
|
||||
WARNING << getSystemErrorMessage(kGetClassLongPtrW);
|
||||
}
|
||||
if (!FramelessConfig::instance()->isSet(Option::UseCrossPlatformQtImplementation)) {
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
const auto windowStyle = static_cast<DWORD>(GetWindowLongPtrW(hwnd, GWL_STYLE));
|
||||
if (windowStyle != 0) {
|
||||
|
@ -1476,6 +1477,7 @@ void Utils::maybeFixupQtInternals(const WId windowId)
|
|||
} else {
|
||||
WARNING << getSystemErrorMessage(kGetWindowLongPtrW);
|
||||
}
|
||||
}
|
||||
if (shouldUpdateFrame) {
|
||||
triggerFrameChange(windowId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue