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

HWNDComponentPeer: Dismiss temporary modal windows when a window loses focus

This commit is contained in:
reuk 2021-10-19 20:12:14 +01:00
parent 44ca96271d
commit b465f60851
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -3812,6 +3812,12 @@ private:
}
handleFocusLoss();
if (auto* modal = Component::getCurrentlyModalComponent())
if (auto* peer = modal->getPeer())
if ((peer->getStyleFlags() & ComponentPeer::windowIsTemporary) != 0)
sendInputAttemptWhenModalMessage();
break;
case WM_ACTIVATEAPP: