shithub: ft²

Download patch

ref: 60d213d2a215dc1c764507b51a065d81b6a2a8d7
parent: 77c8bdbb5a35ba6ba3d7caa90b011dd3c0c164f4
author: Zhanibek Nagashybay <35088721+drradio@users.noreply.github.com>
date: Wed Apr 16 16:24:15 EDT 2025

Set hint to not to disable window compositor

Set SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR to 0 to avoid compositor bypassing.

--- a/src/ft2_video.c
+++ b/src/ft2_video.c
@@ -919,6 +919,13 @@
 	SDL_GetDesktopDisplayMode(di, &dm);
 	video.dMonitorRefreshRate = (double)dm.refresh_rate;
 
+#ifndef SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR
+/* older SDL2 versions don't define this, don't fail the build for it */
+#define SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR "SDL_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR"
+#endif
+	SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
+
+
 	if (dm.refresh_rate >= 59 && dm.refresh_rate <= 61)
 		video.vsync60HzPresent = true;
 
@@ -1140,7 +1147,7 @@
 				ui.drawBPMFlag = false;
 				drawSongBPM(editor.BPM);
 			}
-			
+
 			if (ui.drawSpeedFlag)
 			{
 				ui.drawSpeedFlag = false;
--