sdl2-compat: Don't use quirks to force X11 things on non-X11 platforms

From 5abd827b70a245f128b8f37b7ff9e3542aea4e2d Mon Sep 17 00:00:00 2001
From: Simon McVittie <[EMAIL REDACTED]>
Date: Tue, 8 Apr 2025 19:14:15 +0100
Subject: [PATCH] Don't use quirks to force X11 things on non-X11 platforms

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 src/sdl2_compat.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index a668bec..39b9fb8 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -505,8 +505,10 @@ static QuirkEntryType quirks[] = {
     { "tauon/__main__.py", SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY, "0" },
     { "tauon/__main__.py", SDL_HINT_VIDEO_WAYLAND_ALLOW_LIBDECOR, "0" },
 
+#ifdef SDL2COMPAT_HAVE_X11
     /* Stylus Labs Write does its own X11 input handling */
     { "Write", "SDL_VIDEO_X11_XINPUT2", "0" },
+#endif
 
     /* PPSSPP reads fractional values in wheel events */
     { "PPSSPP", "SDL_MOUSE_INTEGER_MODE", "1" },
@@ -515,6 +517,7 @@ static QuirkEntryType quirks[] = {
     /* Lite-XL reads fractional values in wheel events */
     { "lite-xl", "SDL_MOUSE_INTEGER_MODE", "1" },
 
+#ifdef SDL2COMPAT_HAVE_X11
     /* The UE5 editor has input issues and broken toast notification positioning on Wayland */
     { "UnrealEditor", SDL_HINT_VIDEO_DRIVER, "x11" },
 
@@ -533,6 +536,7 @@ static QuirkEntryType quirks[] = {
     { "BaldursGateII", SDL_HINT_VIDEO_DRIVER, "x11" },
     { "IcewindDale", SDL_HINT_VIDEO_DRIVER, "x11" },
     { "Torment64", SDL_HINT_VIDEO_DRIVER, "x11" },
+#endif
 };
 
 #ifdef __linux__