From c0b609f646053f9863af189d9d80b44ca171b3d4 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Tue, 9 Jul 2024 23:07:41 +0100 Subject: [PATCH] mangoapp: Use XInitThreads We use xlib stuff across threads, we need to set this or bad things can happen. We are just very lucky. =) --- src/app/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/main.cpp b/src/app/main.cpp index e6eff11..51370ed 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -285,6 +285,8 @@ static bool render(GLFWwindow* window) { int main(int, char**) { + XInitThreads(); + // Setup window glfwSetErrorCallback(glfw_error_callback); if (!glfwInit())