mirror of
https://github.com/glfw/glfw.git
synced 2025-06-07 16:24:57 +00:00
Wayland: don't crash if no cursor theme is available
This commit is contained in:
parent
3fa2360720
commit
13f0e50a40
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user