Labels in CalloutBox are not editable on Linux with Wayland

I’m facing an issue with editable labels in CalloutBox on Linux distros that use Wayland. Specifically, any editable labels added to a CalloutBox are not functional.

As mentioned in the original GitHub issue on the JUCE repository (Issue #1481), this problem persists across all major distros that have adopted Wayland as their default (some don’t even ship X11 anymore). This is a significant problem as it affects a broad user base.

Steps to Reproduce:

  1. Open the DialogsDemo.h in the DemoRunner.
  2. Click on the CalloutBox button
  3. Click and highlight one of the colour editable labels in the CalloutBox.
  4. Try entering characters using the keyboard (this doesn’t work).

Any help on this is greatly appreciated!