From 8a94bfbfa2f16020fb70863ab8d3ec809d0d6ad3 Mon Sep 17 00:00:00 2001 From: jakubg1 <24206305+jakubg1@users.noreply.github.com> Date: Tue, 14 Apr 2026 15:08:11 +0200 Subject: [PATCH] Fix a segfault when closing on Wayland According to https://github.com/glfw/glfw/issues/2744, this will be fixed in GLFW 3.5. --- application/application.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/application/application.cpp b/application/application.cpp index 95cc1d52..5355b795 100644 --- a/application/application.cpp +++ b/application/application.cpp @@ -678,6 +678,7 @@ void eu07_application::exit() glfwDestroyWindow(window); } m_taskqueue.exit(); + glfwPollEvents(); // TODO: This fixes a segfault on Wayland when closing. Remove after updating glfw to 3.5. glfwTerminate(); if (!Global.exec_on_exit.empty())