Skip to content

Commit 2c0bc79

Browse files
committed
Typo causing crash on Waylnd compositors that dont support xdg-toplevel-icon
Fix #8471
1 parent 3d0e45a commit 2c0bc79

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/changelog.rst

+4
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ Detailed list of changes
118118
applications that dont specify a destination in the escape code not working
119119
(:iss:`8459`)
120120

121+
- Wayland: Fix a regression in the previous release that caused crashes on
122+
compositors that dont support the xdg-toplevel-icon protocol and the user has
123+
set a custom kitty icon (:iss:`8471`)
124+
121125
0.40.1 [2025-03-18]
122126
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123127

glfw/wl_window.c

+1
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,7 @@ _glfwPlatformSetWindowIcon(_GLFWwindow* window, int count, const GLFWimage* imag
14741474
_glfwInputError(GLFW_FEATURE_UNAVAILABLE, "Wayland: The compositor does not support changing window icons");
14751475
warned_once = true;
14761476
}
1477+
return;
14771478
}
14781479
if (!count) {
14791480
xdg_toplevel_icon_manager_v1_set_icon(_glfw.wl.xdg_toplevel_icon_manager_v1, window->wl.xdg.toplevel, NULL);

0 commit comments

Comments
 (0)