SDL: Disable XTest by default

From 49af5769403cba307fea4c6e4ae79b76b458d0b5 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 5 Mar 2025 13:01:43 -0800
Subject: [PATCH] Disable XTest by default

On Ubuntu 24.04 running XWayland, XTestFakeMotionEvent() appears to succeed but doesn't actually move the cursor, even if the cursor is hidden.
---
 src/video/x11/SDL_x11xtest.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video/x11/SDL_x11xtest.c b/src/video/x11/SDL_x11xtest.c
index 691e5eb32cf6f..26caadce0a2be 100644
--- a/src/video/x11/SDL_x11xtest.c
+++ b/src/video/x11/SDL_x11xtest.c
@@ -30,7 +30,8 @@ static bool xtest_initialized = false;
 
 void X11_InitXTest(SDL_VideoDevice *_this)
 {
-#ifdef SDL_VIDEO_DRIVER_X11_XTEST
+// This is currently disabled since it doesn't appear to work on XWayland
+#if 0//def SDL_VIDEO_DRIVER_X11_XTEST
     Display *display = _this->internal->display;
     int event, error;
     int opcode;