mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 22:43:58 +01:00
explain how to globally add an environment variable to fix Java apps
parent
c81c1de6b5
commit
edddd7b6c2
8
Home.md
8
Home.md
@ -367,7 +367,13 @@ If you want to use a particular application's built-in window decorations over t
|
|||||||
|
|
||||||
#### Issues with Java applications
|
#### 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.
|
This seems to fix blank windows and menus that are drawn at a wrong offset to the selected menu item.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user