You are not logged in.

#1 2021-03-24 19:44:41

Yann21
Member
Registered: 2020-06-12
Posts: 28

[SOLVED] Java apps run from xmonad blank window

I can't run Pycharm nor VisualVM from dmenu without the apps being wrongly displayed (blanked background). The same happens when I run Pycharm directly from xmonad with a binding. But everything works fine when I open them from the command line.

Both apps appear to depend on java but so does intellij and it works fine. I would imagine this has to do with xmonad missing some environment variable. But which one could it be, and how can I fix it? Also if you know any troubleshooting tool to find out if a window is using Qt, AWT, ..., along the lines of xprop, I'll take it smile

Thanks

Last edited by Yann21 (2021-03-26 21:32:43)

Offline

#2 2021-03-26 14:14:09

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: [SOLVED] Java apps run from xmonad blank window

It's very likely this known issue. Try those suggested fixes first before digging too deep into xprop, etc.

Offline

#3 2021-03-26 21:31:52

Yann21
Member
Registered: 2020-06-12
Posts: 28

Re: [SOLVED] Java apps run from xmonad blank window

That was spot on, thanks 1280.
After adding

export _JAVA_AWT_WM_NONREPARENTING=1

as mentioned and rebooting, Pycharm works like a charm :^)

From what I understood xmonad and other suckless window manager don't make use of reparenting. That's the process of adding a box behind top-level windows in order to have homogeneous decorations (bars, buttons) for every window. The Java GUI toolkit deals with this reparenting issue in an ad hoc manner with a hard-coded list. And it looks like xmonad simply didn't make the list.

Last edited by Yann21 (2021-03-26 21:34:24)

Offline

Board footer

Powered by FluxBB