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

Windows Accessibility: Only send window open/close events for main application windows to fix COM ref-counting leak

This commit is contained in:
ed 2021-11-22 16:39:41 +00:00
parent 84cd6152be
commit 82bcad9d30

View file

@ -164,6 +164,14 @@ void notifyAccessibilityEventInternal (const AccessibilityHandler& handler, Inte
return;
}
if (eventType == InternalAccessibilityEvent::windowOpened
|| eventType == InternalAccessibilityEvent::windowClosed)
{
if (auto* peer = handler.getComponent().getPeer())
if ((peer->getStyleFlags() & ComponentPeer::windowHasTitleBar) == 0)
return;
}
auto event = [eventType]() -> EVENTID
{
switch (eventType)