Bypass compositor

This commit is contained in:
Josh Holtrop 2024-01-14 18:53:48 -05:00
parent 02519607cf
commit 09f675a93c
2 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@ env "app" do |env|
result + glob("#{dir}/**/*.{d,c}") result + glob("#{dir}/**/*.{d,c}")
end end
env["D_IMPORT_PATH"] += dirs 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["LDFLAGS"] += %w[-L-lfreetype -L-lSDL2]
env.Program("^/app", sources) env.Program("^/app", sources)
end end

View File

@ -31,6 +31,8 @@ int main()
return 1; return 1;
} }
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
SDL_Window * window = SDL_CreateWindow("d-bindbc-sdl-glad", SDL_Window * window = SDL_CreateWindow("d-bindbc-sdl-glad",
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,