From 7fc1735a21c6daf6d57af145c7f4d80019937e1d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 28 Jun 2022 20:19:52 +0530 Subject: [PATCH] swaps_disallowed is used only on wayland --- glfw/internal.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glfw/internal.h b/glfw/internal.h index adb74d06b..f420b4068 100644 --- a/glfw/internal.h +++ b/glfw/internal.h @@ -441,7 +441,11 @@ struct _GLFWwindow bool rawMouseMotion; _GLFWcontext context; +#ifdef _GLFW_WAYLAND bool swaps_disallowed; +#else + const bool swaps_disallowed; +#endif struct { GLFWwindowposfun pos;