Skip to content

Commit c3cfc75

Browse files
committed
Linux: Don't set SDL_VIDEODRIVER environment variable
This was added for Wayland compositors to prefer native Wayland over XWayland, but it seems to have had unintended consequences Fixes #39
1 parent 2df7b73 commit c3cfc75

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/launcher.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ static void init_sdl()
196196
Uint32 sdl_flags = SDL_INIT_VIDEO;
197197
#ifdef __unix__
198198
SDL_SetHint(SDL_HINT_VIDEO_X11_NET_WM_BYPASS_COMPOSITOR, "0");
199-
setenv("SDL_VIDEODRIVER", "wayland,x11", 0);
200199
#endif
201200
SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "1");
202201
SDL_SetHint(SDL_HINT_VIDEO_ALLOW_SCREENSAVER, config.inhibit_os_screensaver ? "0" : "1");

0 commit comments

Comments
 (0)