SDL_VIDEODRIVER=wayland is still required as of SDL 2.26.2

Jan Beich 2023-01-15 10:18:45 +00:00
parent f8f5e5ea13
commit 78f9f54930

@ -43,15 +43,21 @@ You could set them to `wayland_shm` instead, if you want to use software renderi
## SDL
As of version 2.0.22, SDL prioritizes the Wayland video driver over X11.
SDL3 uses native Wayland [by default](https://github.com/libsdl-org/SDL/commit/f9f7db4e0860).
For older versions:
SDL2 uses [Xwayland by default](https://github.com/libsdl-org/SDL/commit/254fcc90eb22), so use
```shell
SDL_VIDEODRIVER=wayland
```
NOTE: Steam, most games and other (older) binary applications might not work with `wayland` SDL video driver, due to old bundled SDL library. Unset or tweak for specific applications as needed.
NOTE: Steam, most games and other (older) binary applications might not work with `wayland` SDL video driver, due to old bundled SDL library. Unset, tweak for specific applications or force newer SDL via
```shell
SDL_DYNAMIC_API=/usr/lib/libSDL2-2.0.so
```
SDL1 doesn't support native Wayland, so use SDL2 via [sdl12-compat](https://github.com/libsdl-org/sdl12-compat).
## Flatpak
@ -74,4 +80,4 @@ Some Java AWT applications will not display properly unless you set the followin
```shell
_JAVA_AWT_WM_NONREPARENTING=1
```
```