Fix to prevent crashing if xdg-toplevel-icon protocol is not available

This commit is contained in:
TuxTheAstronaut 2025-03-09 21:07:34 -04:00
parent 7fb289808f
commit 3846fbe1bc

View File

@ -2347,8 +2347,7 @@ void _glfwSetWindowIconWayland(_GLFWwindow* window,
{
if (!_glfw.wl.toplevelIconManager)
{
_glfwInputError(GLFW_FEATURE_UNAVAILABLE,
"Wayland: The platform does not support setting the window icon");
fprintf(stderr, "Wayland: xdg-toplevel-icon protocol was not found\n");
return;
}