sdl2-compat: Set SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT to 0

From 6d8f0ac0147eb209dd69c2cd47f00c0f1a05af1f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 5 Mar 2025 09:10:10 -0800
Subject: [PATCH] Set SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT to 0

This matches SDL2 behavior

Fixes https://github.com/libsdl-org/sdl2-compat/issues/396
---
 src/sdl2_compat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index f3dee81..ebfe239 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -1170,6 +1170,7 @@ SDL2Compat_InitOnStartupInternal(void)
     SDL3_SetHint("SDL_WINDOWS_DPI_AWARENESS", "unaware");
     SDL3_SetHint("SDL_BORDERLESS_WINDOWED_STYLE", "0");
     SDL3_SetHint("SDL_VIDEO_SYNC_WINDOW_OPERATIONS", "1");
+    SDL3_SetHint("SDL_VIDEO_X11_EXTERNAL_WINDOW_INPUT", "0");
 
     // Pretend Wayland doesn't have fractional scaling by default.
     // This is more compatible with applications that have only been tested under X11 without high DPI support.