Don't know if it apply's to other java apps but I test IntelliJ in weston and it doesn't work quite well but at least it shows the window content. Also the window should the attach screenshot should be a modal floating window but it appears to be trying to render it as a normal window.
OS: Linux lucy 4.5.1-1-ARCH #1 SMP PREEMPT Thu Apr 14 19:19:32 CEST 2016 x86_64 GNU/Linux
Sway Package version 0.5-2
WLC Package version 0.0.2-1
XWayland Package version 1.18.3-1

Other java programs, like the arduino ide, seem to be fairly broken in sway, though in different ways.
export _JAVA_AWT_WM_NONREPARENTING=1 seems to fix the problem.
This is a known problem with non-re-parenting window managers:
https://awesome.naquadah.org/wiki/Problems_with_Java#Impersonate_Another_Window_Manager
wmname LG3D works for me.
@ids1024 @stwa thanks I'll try that as soon as I get home. I'm closing the issue since it looks like is a known Java issue.
I tried both _JAVA_AWT_WM_NONREPARENTING=1 and wmname LG3D with neither one working. Are there any further suggestions for fixing this?
I have this issue too.
Please check if this issue is still relevant with sway 1.0, investigate it and send a patch.
Yeap, new version fixed this issue. Now I'll be waiting for android studio emulator fix patch. Thanks.
2018.2 did not fix it for me. Bummer
waiting for [鈥 fix patch
Investigate! Ask for help on IRC! Send a patch!
2018.2 did not fix it for me. Bummer
Now idea what "2018.2" refers to.
I am testing against webstorm and the latest release is 2018.2, as of 22 July 2018 (2 days ago). AFAIK, there are typically two methods of fixing this blank display issue, setting export _JAVA_AWT_WM_NONREPARENTING=1 and/or wmname LG3D. But generally, it is reported that some of the java based applications have display issues in linux while using RDP (xrdp to fedora in my case).
(I'm not here for sway but rather the blank screen while using RDP to a linux box.)
I am interested in knowing if there are any further solutions that may have emerged lately. I'm not finding anything out there other than the two listed solutions, or moving away from xrdp.
Thanks!
Jim
I have the same issue.
I am using Microsoft remote desktop application (ver. 10.2.1) on Mac OS X Sierra to connect to my Linux box which is a Debian 9 i686.
My Debian box (Debian 4.9.110-3+deb9u4 (2018-08-21) i686 GNU/Linux) is running Xrdp over Xvnc. Everything else seems to be working well except for arduino 1.8.1...
Any idea ?
Investigate! Ask for help on IRC! Send a patch!
@SirCmpwn What do you mean by, "Investigate! Ask for help on IRC! Send a patch!"? Is that an auto-reply? Cheers.
No, it's not an automated reply, it's a legitimate call for help. We don't have time to investigate all issues here, so we call for help. We try to encourage contributions. Please try to debug this, please send patches!
The fix of _JAVA_AWT_WM_NONREPARENTING=1 in my /etc/profile worked for me with PHPStorm.
@ricejamesh ask @ sway on IRC and if possible send a patch!
@fabean Thanks, that works on Eclipse`s menu! So works too:
# If running trom tty1 start sway
if [ $(tty) = "/dev/tty1" ]; then
_JAVA_AWT_WM_NONREPARENTING=1 window manager.
sway
exit 0
fi
Unfortunately still experiencing this issue on master as of Sway 1.0-beta.
_JAVA_AWT_WM_NONREPARENTING=1 idea
This works for me. Sway 1.0
I just switched to Sway from i3 and experienced the same issue. For me, setting _JAVA_AWT_WM_NONREPARENTING=1 also fixed it. Maybe Sway should set it by default? No clue what it does - is this something that needs to be fixed in Sway or in IntelliJ?
Anyway, thanks for the fix!
@EgbertW
Its Java's issue:
https://bugs.openjdk.java.net/browse/JDK-8058197
@lxbarbosa thanks for the link. Looking at the issue you're referring to is that it is resolved with the addition of the flag _JAVA_AWT_WM_NONREPARENTING. This suggests on that an action is needed on the other side: setting this variable to 1. Isn't this something Sway (and other non-reparenting WM's) should do? Although a more generic variable like XDG_WM_NON_REPARENTING flag would be preferable I suppose...
@lxbarbosa Thank you very much for the code!!! This worked for me!
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
_JAVA_AWT_WM_NONREPARENTING=1 sway
fi
Most helpful comment
export _JAVA_AWT_WM_NONREPARENTING=1seems to fix the problem.