From 166991835ff0072b83f9f6ac62ed8ac4ebd27385 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 25 Mar 2024 21:13:00 +0100 Subject: Force x11 --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index 7e13ec9..2e8aa32 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -947,6 +947,8 @@ bool CMainApplication::BInit() // Needed for mpv SDL_SetHint(SDL_HINT_NO_SIGNAL_HANDLERS, "no"); + SDL_SetHint(SDL_HINT_VIDEODRIVER, "x11"); + m_pCompanionWindow = SDL_CreateWindow( "vr-video-player", nWindowPosX, nWindowPosY, m_nCompanionWindowWidth, m_nCompanionWindowHeight, unWindowFlags ); if (m_pCompanionWindow == NULL) { -- cgit v1.2.3