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 {
|
} else {
|
||||||
WARNING << getSystemErrorMessage(kGetClassLongPtrW);
|
WARNING << getSystemErrorMessage(kGetClassLongPtrW);
|
||||||
}
|
}
|
||||||
|
if (!FramelessConfig::instance()->isSet(Option::UseCrossPlatformQtImplementation)) {
|
||||||
SetLastError(ERROR_SUCCESS);
|
SetLastError(ERROR_SUCCESS);
|
||||||
const auto windowStyle = static_cast<DWORD>(GetWindowLongPtrW(hwnd, GWL_STYLE));
|
const auto windowStyle = static_cast<DWORD>(GetWindowLongPtrW(hwnd, GWL_STYLE));
|
||||||
if (windowStyle != 0) {
|
if (windowStyle != 0) {
|
||||||
|
@ -1476,6 +1477,7 @@ void Utils::maybeFixupQtInternals(const WId windowId)
|
||||||
} else {
|
} else {
|
||||||
WARNING << getSystemErrorMessage(kGetWindowLongPtrW);
|
WARNING << getSystemErrorMessage(kGetWindowLongPtrW);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (shouldUpdateFrame) {
|
if (shouldUpdateFrame) {
|
||||||
triggerFrameChange(windowId);
|
triggerFrameChange(windowId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue