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,