sdl2-compat: Added quirks for Tauon Music Box

From fd9b9566af1ef8c7409148c471a2ace6bc169483 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 13 Feb 2025 09:41:50 -0800
Subject: [PATCH] Added quirks for Tauon Music Box

Fixes https://github.com/libsdl-org/sdl2-compat/issues/302
---
 src/sdl2_compat.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index 565bce8..d6824de 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -447,10 +447,17 @@ static QuirkEntryType quirks[] = {
     /* TODO: Add any quirks needed for various systems. */
     /*{ "my_game_name", "SDL_RENDER_BATCHING", "0" },*/
 
-    /* Apps that support high DPI properly under Wayland */
+    /* Moonlight supports high DPI properly under Wayland */
     { "moonlight", SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY, "0" },
     { "moonlight-qt", SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY, "0" },
 
+    /* Tauon Music Box supports high DPI properly under Wayland.
+     * It also pumps events off the main thread, which causes crashes in libdecor.
+     * It draws its own window border, so we don't actually need window decorations.
+     */
+    { "tauon/__main__.py", SDL_HINT_VIDEO_WAYLAND_SCALE_TO_DISPLAY, "0" },
+    { "tauon/__main__.py", SDL_HINT_VIDEO_WAYLAND_ALLOW_LIBDECOR, "0" },
+
     /* Stylus Labs Write does its own X11 input handling */
     { "Write", "SDL_VIDEO_X11_XINPUT2", "0" },
 };