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:
parent
84cd6152be
commit
82bcad9d30
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue