From 09f675a93c30f7f955d07c501cf5b3d84f2c57dd Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 14 Jan 2024 18:53:48 -0500 Subject: [PATCH] Bypass compositor --- Rsconscript | 2 +- src/app.d | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Rsconscript b/Rsconscript index 03ba4be..04185ba 100644 --- a/Rsconscript +++ b/Rsconscript @@ -13,7 +13,7 @@ env "app" do |env| result + glob("#{dir}/**/*.{d,c}") end env["D_IMPORT_PATH"] += dirs - env["DFLAGS"] += %w[--d-version=BindBC_Static] + env["DFLAGS"] += %w[--d-version=BindBC_Static --d-version=SDL_208] env["LDFLAGS"] += %w[-L-lfreetype -L-lSDL2] env.Program("^/app", sources) end diff --git a/src/app.d b/src/app.d index 09918c7..4bb8f58 100644 --- a/src/app.d +++ b/src/app.d @@ -31,6 +31,8 @@ int main() return 1; } + SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0"); + SDL_Window * window = SDL_CreateWindow("d-bindbc-sdl-glad", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,