From 8fe8fbb493b29bb2ee50819770c873a73e21f0ac Mon Sep 17 00:00:00 2001 From: Warwick Date: Fri, 28 Nov 2025 19:56:59 +0000 Subject: [PATCH] Made the code try to use x11 before wayland because glew is painful --- src/window.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/window.c b/src/window.c index e0ea56b..4bce67d 100644 --- a/src/window.c +++ b/src/window.c @@ -1,4 +1,5 @@ #include "window.h" +#include "SDL3/SDL_hints.h" #include "SDL3/SDL_init.h" #include "arena_allocator.h" #include @@ -6,6 +7,9 @@ #include wn_window *wn_window_init(Arena *arena) { + // Try to use X11 till I fix glew may require xwayland + SDL_SetHint(SDL_HINT_VIDEO_DRIVER, "x11"); + wn_window *window = arena_alloc(arena, sizeof(wn_window)); *window = (wn_window){0};