From 78f9f549305d4aeaa275f2f8a7438203257ab6d2 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Sun, 15 Jan 2023 10:18:45 +0000 Subject: [PATCH] SDL_VIDEODRIVER=wayland is still required as of SDL 2.26.2 --- Running-programs-natively-under-Wayland.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 +```