Fix spurious error from glfwInitHintString

Closes #1138
This commit is contained in:
Kovid Goyal 2017-11-20 16:09:39 +05:30
parent 1fe319d234
commit 68809869f9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -265,11 +265,11 @@ GLFWAPI void glfwInitHintString(int hint, const char* value)
case GLFW_X11_WM_CLASS_NAME:
strncpy(_glfwInitHints.x11.className, value,
sizeof(_glfwInitHints.x11.className) - 1);
break;
return;
case GLFW_X11_WM_CLASS_CLASS:
strncpy(_glfwInitHints.x11.classClass, value,
sizeof(_glfwInitHints.x11.classClass) - 1);
break;
return;
}
_glfwInputError(GLFW_INVALID_ENUM,