swaps_disallowed is used only on wayland

This commit is contained in:
Kovid Goyal 2022-06-28 20:19:52 +05:30
parent 1e49038747
commit 7fc1735a21
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

4
glfw/internal.h vendored
View File

@ -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;