sdl2-compat: quirks: Force Payday 2/linux to use X11.

From 544175ccba5ca1a199612de8b5bfbdf206934285 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Sat, 27 Jun 2026 16:39:33 -0400
Subject: [PATCH] quirks: Force Payday 2/linux to use X11.

Fixes #537.
---
 src/sdl2_compat.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index e00c8feb..6110596e 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -559,6 +559,11 @@ static QuirkEntryType quirks[] = {
     /* X4: Foundations assumes X11 and exits with an error otherwise
      * https://github.com/libsdl-org/sdl2-compat/issues/555 */
     {"X4", SDL_HINT_VIDEO_DRIVER, "x11"},
+
+    /* Payday 2 wants to do most of its video subsystem stuff from a background thread, including
+     * CreateWindow, PollEvent, and GL_SwapWindow, and this upsets Wayland.
+     * https://github.com/libsdl-org/sdl2-compat/issues/537 */
+    {"payday2_release", SDL_HINT_VIDEO_DRIVER, "x11"},
 #endif
 };