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

Windows: Don't send modal input attempts to windows that are explicitly ignoring them

This commit is contained in:
ed 2021-12-14 10:10:44 +00:00
parent 3f7791bbfe
commit 1744008413

View file

@ -4033,7 +4033,9 @@ private:
return false;
if (auto* current = Component::getCurrentlyModalComponent())
current->inputAttemptWhenModal();
if (auto* owner = getOwnerOfWindow ((HWND) current->getWindowHandle()))
if (! owner->shouldIgnoreModalDismiss)
current->inputAttemptWhenModal();
return true;
}