diff --git a/Running-programs-natively-under-Wayland.md b/Running-programs-natively-under-Wayland.md index 06536ad..31623d3 100644 --- a/Running-programs-natively-under-Wayland.md +++ b/Running-programs-natively-under-Wayland.md @@ -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 -``` \ No newline at end of file +```