Closed httnn closed 8 months ago
there was a slight oversight where the focus events were not sent correctly if the window contained other things besides just the NSView that houses the plugin. should be fixed now though, also added some comments for clarity.
trigger
WindowEvent::Focused
andWindowEvent::Unfocused
events when the plugin window gains/loses focus. implemented by adding observers toNSNotificationCenter::defaultCenter()
that listen toNSWindowDidBecomeKeyNotification
andNSWindowDidResignKeyNotification
notifications on theNSViews
' window.tested and confirmed to work in Live, Bitwig, FL Studio, Reaper and AudioPluginHost.