From 0c90b66f913cbcced0dbce547bd9e54bd67dab7c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Mar 2026 09:18:50 +0530 Subject: [PATCH] ... --- kitty/glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index 49c9778ed..75f8b232b 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -1089,7 +1089,7 @@ set_os_window_icon(PyObject UNUSED *self, PyObject *args) { if(!PyArg_ParseTuple(args, "K|O", &id, &what)) return NULL; OSWindow *os_window = os_window_for_id(id); if (!os_window) { PyErr_Format(PyExc_KeyError, "No OS Window with id: %llu", id); return NULL; } - if (w->is_layer_shell && global_state.is_wayland) Py_RETURN_NONE; + if (os_window->is_layer_shell && global_state.is_wayland) Py_RETURN_NONE; if (!what || what == Py_None) { glfwSetWindowIcon(os_window->handle, 0, NULL); Py_RETURN_NONE;