From 125a217f5a826cc353668b91f74e55386033bff2 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Mon, 24 Mar 2025 13:17:59 -0400
Subject: [PATCH] Prefer X11 for the UE5 editor by default
It requires more work before it will work properly on Wayland, as toast popup notifications are broken, some desktops have mouse input issues, and the current Nvidia drivers seem to have stability issues with it under Wayland.
---
src/sdl2_compat.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 29a553f..df5e31c 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -492,6 +492,9 @@ static QuirkEntryType quirks[] = {
/* Stylus Labs Write does its own X11 input handling */
{ "Write", "SDL_VIDEO_X11_XINPUT2", "0" },
+
+ /* The UE5 editor has input issues and broken toast notification positioning on Wayland */
+ { "UnrealEditor", SDL_HINT_VIDEO_DRIVER, "x11" },
};
#ifdef __linux__