[win] fix bug 68884

This commit is contained in:
SimplestStudio
2024-06-27 15:18:06 +03:00
parent 4106136fb9
commit bac8c7079e

View File

@ -315,7 +315,7 @@ bool CWindowPlatform::nativeEvent(const QByteArray &eventType, void *message, lo
adjustGeometry();
});
}
} else if (msg->wParam == 0) {
} else if (msg->wParam == 0 && msg->lParam) {
const std::wstring param{(wchar_t*)msg->lParam};
if (param == L"ImmersiveColorSet") {
QSettings _reg("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Themes\\Personalize", QSettings::NativeFormat);