From 5e89e86519dfc9ed70738bcca5c9b72becbc07fa Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Fri, 13 Jan 2023 15:14:25 -0500
Subject: [PATCH] quirks: Don't let grafx2 access an X11 server directly.
Fixes #282.
---
src/SDL12_compat.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index b8749d080..7629c2913 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -1230,6 +1230,9 @@ static QuirkEntryType quirks[] = {
/* boswars has a bug where SDL_AudioCVT must not require extra buffer space. See Issue #232. */
{"boswars", "SDL12COMPAT_COMPATIBILITY_AUDIOCVT", "1"},
+ /* grafx2 tries to do all sorts of stuff by talking directly to the X server, causing problems. */
+ {"grafx2", "SDL12COMPAT_ALLOW_SYSWM", "0"},
+
/* The 32-bit Steam build only of Multiwinia Quits but doesn't re-Init */
{"multiwinia.bin.x86", "SDL12COMPAT_NO_QUIT_VIDEO", "1"}
#else