This commit is contained in:
Kovid Goyal 2026-10-28 17:25:46 +05:30
parent 89960b54d7
commit ad451c720f
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
3 changed files with 6 additions and 0 deletions

View file

@ -395,6 +395,9 @@ Detailed list of changes
downloaded only once and images are decoded only once for all such outputs.
Specifying the same output file twice is now an error (:pull:`10744`)
- Wayland: Fix :option:`kitty --os-window-tag` not setting the window tag
(:iss:`10759`)
- Clipboard kitten: Correctly detect duplicate output files when a path contains
a symlink followed by ``..``, avoiding overwrites of the same target and
erroneous rejection of distinct output files

1
glfw/wl_window.c vendored
View file

@ -1555,6 +1555,7 @@ _glfwPlatformCreateWindow(
csd_initialize_metrics(window);
window->wl.transparent = fbconfig->transparent;
strncpy(window->wl.appId, wndconfig->wl.appId, sizeof(window->wl.appId));
strncpy(window->wl.windowTag, wndconfig->wl.windowTag, sizeof(window->wl.windowTag));
window->swaps_disallowed = true;
if (!create_surface(window, wndconfig)) return false;

View file

@ -2361,6 +2361,8 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) {
glfwWindowHintString(GLFW_X11_INSTANCE_NAME, wm_class_name);
glfwWindowHintString(GLFW_X11_CLASS_NAME, wm_class_class);
glfwWindowHintString(GLFW_WAYLAND_APP_ID, wm_class_class);
// wm_class_name defaults to wm_class_class when not specified, only set the tag when it was specified
glfwWindowHintString(GLFW_WAYLAND_WINDOW_TAG, strcmp(wm_class_name, wm_class_class) == 0 ? "" : wm_class_name);
#endif
if (global_state.num_os_windows >= MAX_CHILDREN) {