Use a barrier to ensure we don't flush important window events

This commit is contained in:
Cameron Gutman 2021-01-09 17:51:25 -06:00
commit 2d62d090df
3 changed files with 47 additions and 6 deletions

View file

@ -39,6 +39,8 @@ public:
return m_OverlayManager;
}
void flushWindowEvents();
signals:
void stageStarting(QString stage);
@ -150,6 +152,7 @@ private:
SdlInputHandler* m_InputHandler;
SDL_SpinLock m_InputHandlerLock;
int m_MouseEmulationRefCount;
bool m_FlushingWindowEvents;
bool m_AsyncConnectionSuccess;
int m_PortTestResults;