You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Linux with Wayland, since Java 21, Swing adds a window focus listener
to popup owner/invoker window, which hides the popup as soon as the owner window looses focus.
This works fine for light-weight popups (because they use JPanel).
It also works for heavy-weight popups (which use JWindow) if the do not request focus (e.g. menus, tooltips, combobox list).
Because FlatLaf always uses heavy-weight popups, all popups that request focus are broken since Java 21.
On Linux with Wayland, since Java 21, Swing adds a window focus listener
to popup owner/invoker window, which hides the popup as soon as the owner window looses focus.
This works fine for light-weight popups (because they use
JPanel
).It also works for heavy-weight popups (which use
JWindow
) if the do not request focus (e.g. menus, tooltips, combobox list).Because FlatLaf always uses heavy-weight popups, all popups that request focus are broken since Java 21.
JDK bug and PR that cause the problem:
Test case to reproduce the issue:
The text was updated successfully, but these errors were encountered: