I recently installed Android Studio on arch linux with DWM. But the initial dialog window, which prompts for starting a new project is blank. The links in this windows work though. I can start a new project by blindly clicking where the new project button is supposed to be. There is no problem with the new project wizard, but the editor window which loads up is blank as well.

However, if I start the X server with android studio as the client, It works correctly. So it's an issue with DWM. What could be the reason?


Intellij has the same problem with dwm.

  • 1
    wiki.archlinux.org/index.php/… – jasonwryan Jun 14 '17 at 18:10
  • Thanks, setting the variable works but I've run on another issue. I can't set the variable from .xinitrc. These are the last two lines of my .xinitrc: export _JAVA_AWT_WM_NONREPARENTING=1 exec $1. It works if I set the variable in shell startup file – saga Jun 14 '17 at 18:46
  • It should work in .xinitrc, but equally will work in your shell profile. – jasonwryan Jun 14 '17 at 19:06
  • yes it should, but it doesn't. That's the problem, I can't export variables from .xinitrc – saga Jun 14 '17 at 19:34
  • That is a separate issue. Just put it in your shell profile. – jasonwryan Jun 14 '17 at 19:42

You'll need to set the _JAVA_AWT_WM_NONREPARENTING variable to 1 through some way to Android Studio.

If you're starting dwm via startx, add this to your .xinitrc:


If you're launching Android Studio from a shell, add the same line to your shell's rc file.

If you're launching Android Studio from a shortcut, and you're not using startx, then you'll have to add the variable to the WM after the process started.

  • 3
    Thank you so much – vesche Apr 6 '19 at 18:04
  • Report from the future: the solution works also in ratpoison. – peterh Aug 27 '20 at 9:52
echo export _JAVA_AWT_WM_NONREPARENTING=1 >> ~/.profile

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.