diff --git a/client/devkit_client/gui2/gui2.py b/client/devkit_client/gui2/gui2.py index 2c57facdcb241cc3207b812a6528d8045d801d78..13343ebd20c76220018c4e180358079bce2bd927 100644 --- a/client/devkit_client/gui2/gui2.py +++ b/client/devkit_client/gui2/gui2.py @@ -3104,6 +3104,10 @@ class ImGui_SDL2_Viewport: def setup(self): self.report_versions() + if platform.system() == 'Linux': + # Fix startup on wayland - looks like this needs to be set before init + sdl2.SDL_SetHint(sdl2.SDL_HINT_VIDEODRIVER, b"wayland,x11") + if sdl2.SDL_Init(sdl2.SDL_INIT_EVERYTHING) < 0: raise Exception('SDL_Init failed: %d'.format(sdl2.SDL_GetError()))