mirror of
https://github.com/glfw/glfw.git
synced 2025-11-18 03:53:27 +00:00
Fix to prevent crashing if xdg-toplevel-icon protocol is not available
This commit is contained in:
parent
7fb289808f
commit
3846fbe1bc
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user