sdl2-compat: Set the SDL3 hint to sync all window operations to mimic the old behavior

From 7a99b64a73f7547e40742bc413576c3693451688 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Tue, 12 Dec 2023 13:10:24 -0500
Subject: [PATCH] Set the SDL3 hint to sync all window operations to mimic the
 old behavior

---
 src/sdl2_compat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sdl2_compat.c b/src/sdl2_compat.c
index b80e40d..535778e 100644
--- a/src/sdl2_compat.c
+++ b/src/sdl2_compat.c
@@ -1223,6 +1223,7 @@ SDL2Compat_InitOnStartup(void)
     SDL3_SetHint("SDL_WINDOWS_DPI_SCALING", 0);
     SDL3_SetHint("SDL_WINDOWS_DPI_AWARENESS", "unaware");
     SDL3_SetHint("SDL_BORDERLESS_WINDOWED_STYLE", "0");
+    SDL3_SetHint("SDL_VIDEO_SYNC_WINDOW_OPERATIONS", "1");
 
     return 1;