Skip to content

Instantly share code, notes, and snippets.

@kiosion
Created September 13, 2021 07:42
Show Gist options
  • Save kiosion/833512a20c08b7ab4ad2b6047015a276 to your computer and use it in GitHub Desktop.
Save kiosion/833512a20c08b7ab4ad2b6047015a276 to your computer and use it in GitHub Desktop.
Fix for IntelliJ grey-screen while running under bspwm

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.

Install

  • 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

Config

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment