Qt: handle upstream trolling

This commit is contained in:
Megamouse 2018-07-15 15:28:09 +02:00 committed by Ivan
parent 65d270e5d8
commit de693b0da1
1 changed files with 8 additions and 1 deletions

View File

@ -320,7 +320,14 @@ bool gs_frame::nativeEvent(const QByteArray &eventType, void *message, long *res
{
std::lock_guard<std::mutex> lock(wm_event_lock);
MSG* msg = static_cast<MSG*>(message);
// https://bugreports.qt.io/browse/QTBUG-69074?focusedCommentId=409797&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-409797
#if (QT_VERSION == QT_VERSION_CHECK(5, 11, 1))
MSG* msg = *reinterpret_cast<MSG**>(message);
#else
MSG* msg = reinterpret_cast<MSG*>(message);
#endif
switch (msg->message)
{
case WM_WINDOWPOSCHANGING: