explain how to globally add an environment variable to fix Java apps

Ma'or Kadosh 2020-09-27 21:12:47 +03:00
parent c81c1de6b5
commit edddd7b6c2

@ -367,7 +367,13 @@ If you want to use a particular application's built-in window decorations over t
#### Issues with Java applications
* Try to set `_JAVA_AWT_WM_NONREPARENTING=1` in your environment. [Source](https://github.com/swaywm/sway/issues/595)
* Try to set `_JAVA_AWT_WM_NONREPARENTING=1` in your environment ([Source](https://github.com/swaywm/sway/issues/595)). You can achieve this by appending the following snippet to your `~/.profile` file:
```sh
if [ "$XDG_SESSION_DESKTOP" = "sway" ] ; then
# https://github.com/swaywm/sway/issues/595
export _JAVA_AWT_WM_NONREPARENTING=1
fi
```
This seems to fix blank windows and menus that are drawn at a wrong offset to the selected menu item.