mirror of
https://github.com/glfw/glfw
synced 2026-09-26 16:18:21 +03:00
Fix to prevent crashing if xdg-toplevel-icon protocol is not available
This commit is contained in:
parent
7fb289808f
commit
3846fbe1bc
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue