Skip to content

Commit

Permalink
Linux: Don't set SDL_VIDEODRIVER environment variable
Browse files Browse the repository at this point in the history
This was added for Wayland compositors to prefer native Wayland over XWayland, but it seems to have had unintended consequences

Fixes #39
  • Loading branch information
complexlogic committed Oct 26, 2024
1 parent 2df7b73 commit c3cfc75
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/launcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ static void init_sdl()
Uint32 sdl_flags = SDL_INIT_VIDEO;
#ifdef __unix__
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
setenv("SDL_VIDEODRIVER", "wayland,x11", 0);
#endif
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1");
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, config.inhibit_os_screensaver ? "0" : "1");
Expand Down

0 comments on commit c3cfc75

Please sign in to comment.