mirror of
https://github.com/glfw/glfw.git
synced 2025-06-08 00:34:56 +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;
|
const char* name = NULL;
|
||||||
|
|
||||||
|
if (!_glfw.wl.cursorTheme) {
|
||||||
|
_glfwInputError(GLFW_CURSOR_UNAVAILABLE,
|
||||||
|
"Wayland: No cursor theme");
|
||||||
|
return GLFW_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
// Try the XDG names first
|
// Try the XDG names first
|
||||||
switch (shape)
|
switch (shape)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user