From db940555114f83bd39b836756648a8d47704cee8 Mon Sep 17 00:00:00 2001 From: "Pierre-Loup A. Griffais" Date: Sun, 5 Jan 2020 04:45:45 -0800 Subject: [PATCH] Fix DRM output, initializing SDL apparently breaks it. We don't want SDL input in the non-nested case at any rate. --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 14457df..493da9d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -68,8 +68,6 @@ int main(int argc, char **argv) XInitThreads(); - inputsdl_init(); - initOutput(); wlserver_init(argc, argv, g_bIsNested == true ); @@ -99,6 +97,8 @@ void initOutput(void) if ( g_bIsNested == true ) { + inputsdl_init(); + window = SDL_CreateWindow( "steamcompmgr", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, g_nOutputWidth, g_nOutputHeight, SDL_WINDOW_VULKAN );