Typo causing crash on Waylnd compositors that dont support xdg-toplevel-icon
Fix #8471
This commit is contained in:
parent
3d0e45ace8
commit
2c0bc79be1
2 changed files with 5 additions and 0 deletions
|
|
@ -118,6 +118,10 @@ Detailed list of changes
|
|||
applications that dont specify a destination in the escape code not working
|
||||
(:iss:`8459`)
|
||||
|
||||
- Wayland: Fix a regression in the previous release that caused crashes on
|
||||
compositors that dont support the xdg-toplevel-icon protocol and the user has
|
||||
set a custom kitty icon (:iss:`8471`)
|
||||
|
||||
0.40.1 [2025-03-18]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
1
glfw/wl_window.c
vendored
1
glfw/wl_window.c
vendored
|
|
@ -1474,6 +1474,7 @@ _glfwPlatformSetWindowIcon(_GLFWwindow* window, int count, const GLFWimage* imag
|
|||
_glfwInputError(GLFW_FEATURE_UNAVAILABLE, "Wayland: The compositor does not support changing window icons");
|
||||
warned_once = true;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!count) {
|
||||
xdg_toplevel_icon_manager_v1_set_icon(_glfw.wl.xdg_toplevel_icon_manager_v1, window->wl.xdg.toplevel, NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue