From 17783e08cd76e68051dbf4f838f93df4ebb590ff Mon Sep 17 00:00:00 2001 From: Gliczy <129636582+Gliczy@users.noreply.github.com> Date: Tue, 23 Jan 2024 15:18:26 +0100 Subject: [PATCH] slade: set GDK_BACKEND to x11 Slade has major issues when running in native Wayland: - The 3D view in the map editor is "spinning", making it unusable. - The UI will freeze when trying to preview or edit an asset. - Some crashes --- pkgs/games/doom-ports/slade/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/games/doom-ports/slade/default.nix b/pkgs/games/doom-ports/slade/default.nix index 42a8c2485174..9ab3d1f458d5 100644 --- a/pkgs/games/doom-ports/slade/default.nix +++ b/pkgs/games/doom-ports/slade/default.nix @@ -62,6 +62,12 @@ stdenv.mkDerivation rec { env.NIX_CFLAGS_COMPILE = "-Wno-narrowing"; + preFixup = '' + gappsWrapperArgs+=( + --prefix GDK_BACKEND : x11 + ) + ''; + meta = with lib; { description = "Doom editor"; homepage = "http://slade.mancubus.net/";