-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linux with Wayland and Java 21: popups that request focus are not shown #752
Milestone
Comments
fixed in 3.2.3 |
DevCharly
added a commit
that referenced
this issue
Oct 21, 2023
…s `null` (only on Linux with Wayland and Java 21; regression in 3.2.3) (issue #752)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: