-
Notifications
You must be signed in to change notification settings - Fork 874
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
Missing "Show opened documents list" widget with FlatLaf theme #6587
Comments
I checked logs but I can see only some errors from parser and indexer. If
you mean, for example, code completion as example of popup then yes I can
see it.
Jakub
…On Wed, Oct 18, 2023 at 9:55 PM Michael Bien ***@***.***> wrote:
Do other popups work? Anything in the log?
can't reproduce this in fedora/virtualbox
[image: image]
<https://user-images.githubusercontent.com/114367/276383860-ea1ff1b6-12b4-4bb4-a343-1f62bebdfd1b.png>
—
Reply to this email directly, view it on GitHub
<#6587 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABK6DR33KX5VN52KYVL2WYDYAAX3DAVCNFSM6AAAAAA6GAZQWGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRZGIZDGNRWGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Can replicate on my laptop which has Wayland on Ubuntu 22.04. My main machine is X11 (dual monitor setup doesn't work on Wayland) and doesn't show this issue. It appears to be a JDK regression. NetBeans 19 and 20-rc1 show this issue running on JDK 21, but neither have a problem on JDK 20. Please can you verify this? @mbien which JDK are you using there? |
cc @DevCharly any idea what FlatLaf is doing differently with popups that might cause this? This change in the JDK looks like it might be a culprit? openjdk/jdk@3d550f7 |
testing on fedora default:
unzip and run |
Could you try with JDK 21 too? Be good to get confirmation that's where the problem is. We also have two somewhat different implementations of ButtonPopupSwitcher depending on whether multitabs are in use too. Both seem affected though. |
yes I am testing as we speak: I sometimes see the popup flickering for a split second but it disappears right away. "sort by project" and window decoration switches do not influence the result for me edit: all other popups I tried are working fine |
Yes, I can confirm that. |
Yes, FlatLaf always uses so-called heavy-weight popups (
Yes, this is the cause. I've debugged it. So why do other popups (menu, tooltips, etc) work in NB with Java 21? Because they do not receive focus. The NB "document list" popup internally uses a I'm working on a fix/hack for FlatLaf that removes that bad window focus listener 😒 |
test build: tested on 21+35, 21.0.1 and 20.0.2 and the fix solves the issue for me (fedora test setup). Thanks @DevCharly! |
BTW I've reported the issue in Java 21 to "Java bug database" |
|
Apache NetBeans version
Apache NetBeans 20 release candidate
What happened
I tried netbeans rc1 and I have a problem with "Show opened documents list" action. When I clicked to the icon, nothing has displayed. The first time I could see a window for maybe half a second but after that time the window has hidden.
I also tried GTK theme and I can see this widget so I think there is something wrong with the FlatLaf theme.
How to reproduce
Did this work correctly in an earlier version?
Apache NetBeans 18
Operating System
Fedora 39 - Wayland
JDK
OpenJDK 21 64bit
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
No response
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: