Skip to content

Instantly share code, notes, and snippets.

@rahilwazir
Created March 21, 2016 13:18
Show Gist options
  • Save rahilwazir/a2d13f0380603f091e11 to your computer and use it in GitHub Desktop.
Save rahilwazir/a2d13f0380603f091e11 to your computer and use it in GitHub Desktop.
PHPStorm (IntelliJ) and Xmonad | Grey box issue

Another quick one as I'm sure I'll need to do this on another machine.

When launching PHPStorm, I was presented with a grey box that did nothing. I realised that it was probably related to the fact that I’m running XMonad.

After a quick Google, I came across the the tried and tested setWMName LG3D that I've used previously (to make Source games run under Steam). Unfortunately, this wasn’t working for PHPStorm because I’m also using XMonad.Hooks.EwmhDesktops which nullifies the effect of setWMName.

This issue existing because Xmonad is a non-reparenting window manager, and we need to inform Java of that.

You can either specify the environment variable when launching phpstorm:

_JAVA_AWT_WM_NONREPARENTING=1 phpstorm.sh

Or you can have it loaded into the environment automatically. I did this by adding the following to ~/.profile

export _JAVA_AWT_WM_NONREPARENTING=1

Source

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