1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Avoided a problem with the win32 video module if JUCE_MODAL_LOOPS_PERMITTED is disabled

This commit is contained in:
jules 2017-07-10 10:08:12 +01:00
parent da113a24a5
commit 97fdc233e6

View file

@ -483,10 +483,12 @@ private:
if (FAILED (hr))
{
#if JUCE_MODAL_LOOPS_PERMITTED
// Annoyingly, if we don't run the msg loop between failing and deleting the window, the
// whole OS message-dispatch system gets itself into a state, and refuses to deliver any
// more messages for the whole app. (That's what happens in Win7, anyway)
MessageManager::getInstance()->runDispatchLoopUntil (200);
#endif
}
}