JUCE icon indicating copy to clipboard operation
JUCE copied to clipboard

[Bug]: Keyboard events not coming through after editor has been resized in Logic Pro X ARM

Open httnn opened this issue 3 years ago • 2 comments

Detailed steps on how to reproduce the bug

  1. create a new plugin with a basic JUCE slider and a button that resizes the plugin window via setSize()
  2. build universal AU and open it in Logic Pro X 10.6.3 - 10.7.3 in M1 native mode (not Rosetta)
  3. open the UI and type something into the slider's value box -> observe it working
  4. click on the button to change the size of the UI
  5. type something into the slider's value box -> now nothing happens in the text box, keyboard events instead trigger actions in Logic

this happens at least with JUCE versions 6.0.3 - 6.1.6

this doesn't happen when launching Logic in Rosetta mode

What is the expected behaviour?

keyboard events should work as they did before resizing the plug-in UI

Operating systems

macOS

What versions of the operating systems?

12.3 using a Mac with an M1 processor

Architectures

ARM

Stacktrace

No response

Plug-in formats (if applicable)

AU

Plug-in host applications (DAWs) (if applicable)

Logic Pro X 10.6.3 - 10.7.3 (at least)

Testing on the develop branch

I have not tested against the develop branch

Code of Conduct

  • [X] I agree to follow the Code of Conduct

httnn avatar Apr 14 '22 07:04 httnn

Are you sure this is a JUCE issue? Did you try non-JUCE plug-ins (not Logic built-in)

We've seen similar behaviors where the window isn't focused (white border) on Apple silicon (as logic uses sandboxing on Apple silicon only).

talaviram avatar Apr 14 '22 09:04 talaviram

@talaviram at least FabFilter's Pro-Q3 seems to work even after resizing it

httnn avatar Apr 14 '22 10:04 httnn

This looks to be a bug on Apple's side: https://forum.juce.com/t/bug-m1-apple-silicon-keyboard-focus-lost-permanently-in-logic-when-plugin-is-resized/51292

tpoole avatar Dec 21 '22 16:12 tpoole