Here's how I fixed IntelliJ IDEA opening to a grey/null screen while running under bspwm or other tiling WM's. According to this section in bspwm's page on the Arch Wiki, it's an issue with the way some Java programs respond to tiling WM's. There are several fixes and pages listed there; below is what I found to work best, YMMV.
- jdk11-openjdk & wmname via pacman
sudo pacman -S jdk11-openjdk wmname
- Switch system to jdk11 (this fixed crashes I was getting with jdk16, might not be necessary)
archlinux-java jdk11-openjdk
I use Xorg, so in .xinitrc I added the following lines:
export AWT_TOOLKIT=MToolkit
# start command for your wm here
exec wmname LG3D
export _JAVA_AWT_WM_NONREPARENTING=1
And done! These couple steps resolved an obscure issue I'd been struggling with for the past few days, so I thought it might be of help to someone else to post here :)