Skip to content
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

Blank windows on some Linux WMs (Sway, BSPWM, Awesome, Xmonad, SteamOS) #33

Open
Fxzzi opened this issue Jun 11, 2022 · 7 comments
Open
Labels
bug Something isn't working

Comments

@Fxzzi
Copy link

Fxzzi commented Jun 11, 2022

https://uploadi.ng/fazzi/jNScKfQo
as you can see here, there are white boxes and I'm unable to see the options. I'm running Arch Linux. Any suggestions?

@comp500
Copy link
Member

comp500 commented Jun 11, 2022

Hmm, that's strange... try updating/reinstalling Java? Make sure you're not using the headless JDK/JRE.

@comp500 comp500 transferred this issue from packwiz/packwiz Jun 13, 2022
@Dakedres
Copy link

Dakedres commented Jun 14, 2022

Same issue here on BSPWM, I've had it before, but it was fixed when I switched from openj9.

Apparently it's a Java bug on non-reparenting window managers (i.e. BSPWM, Xmonad, Awesome, DWM). There's a pretty comprehensive issue for it on some swing library's repo.

I've found two fixes looking around online.

This one's supposed to work if you're using OpenJDK, I just added it to my .profile
export _JAVA_AWT_WM_NONREPARENTING=1

There's this fix too, I remember having to use it once to get IntelliJ to work, but iirc those issues manifested a bit differently
https://github.com/ThatOneCalculator/bspwm-fix-java

@comp500 comp500 added bug Something isn't working question Further information is requested labels Jun 21, 2022
@dajix350
Copy link

This is still a problem for me. I am using Sway (Wayland) on Arch Linux. I tried the environment variables with no joy. Anyone know any current workarounds?

@comp500
Copy link
Member

comp500 commented Nov 20, 2022

Other than the aforementioned NONREPARENTING env variable, I don't know. There is an issue on the Sway repository that might be helpful: swaywm/sway#595

@comp500 comp500 changed the title White boxes on install packwiz gui Blank windows on some Linux WMs (Sway, BSPWM, Awesome, Xmonad) Apr 22, 2023
@comp500 comp500 removed the question Further information is requested label Apr 22, 2023
@comp500
Copy link
Member

comp500 commented Apr 22, 2023

Another user has successfully used _JAVA_AWT_WM_NONREPARENTING=1 on Sway - this workaround seems to still work in modern OpenJDK builds.

@comp500
Copy link
Member

comp500 commented Apr 22, 2023

It looks like JetBrains has managed to fix the root cause of this issue in JetBrains Runtime with this patch; you can try this JDK fork at https://github.com/JetBrains/JetBrainsRuntime

I hope this can be upstreamed into OpenJDK in the future, as neither the reparenting environment variable nor a custom JVM are feasible for me to implement as a general solution.

@comp500 comp500 pinned this issue Apr 22, 2023
@Merith-TK
Copy link

to make this work on the SteamDeck
install flatseal and then modify the environment variables for PrismLauncher to include the variable, it works

@comp500 comp500 changed the title Blank windows on some Linux WMs (Sway, BSPWM, Awesome, Xmonad) Blank windows on some Linux WMs (Sway, BSPWM, Awesome, Xmonad, SteamOS) May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants