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

Java GUI appears blank #79

Closed
ruhlio opened this Issue Jul 27, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@ruhlio

ruhlio commented Jul 27, 2015

XMonad has a SetWMName (http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-SetWMName.html) function as a workaround to prevent Java GUIs (AWT I believe) from appears as only a gray rectangle. In my case, Intellij fails to paint. As a first pass I tried, inside of XlibWindowSystem::new() changing
let name = (*CString::new(&b"wtftw"[..]).unwrap()).as_ptr();
to
let name = (*CString::new(&b"LG3D"[..]).unwrap()).as_ptr();
but the issue still remained.

@Kintaro

This comment has been minimized.

Owner

Kintaro commented Jul 28, 2015

export _JAVA_AWT_WM_NONREPARENTING=1

This should fix it

@ruhlio

This comment has been minimized.

ruhlio commented Jul 28, 2015

Setting the environment variable didn't work but calling wmname LG3D did. Thanks

@Kintaro

This comment has been minimized.

Owner

Kintaro commented Jul 29, 2015

Ok. For me the env variable helped with IntelliJ. But if that works too, great :D

@Kintaro Kintaro closed this Jul 29, 2015

@hryniuk

This comment has been minimized.

Collaborator

hryniuk commented May 11, 2018

In config.rs:

run!("wmname", "LG3D")(w, w, w);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment