diff --git a/src/wl_window.c b/src/wl_window.c index 52d3b9eb..fde02ac8 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -2630,6 +2630,12 @@ GLFWbool _glfwCreateStandardCursorWayland(_GLFWcursor* cursor, int shape) { const char* name = NULL; + if (!_glfw.wl.cursorTheme) { + _glfwInputError(GLFW_CURSOR_UNAVAILABLE, + "Wayland: No cursor theme"); + return GLFW_FALSE; + } + // Try the XDG names first switch (shape) {