Wayland: Allow overriding the kitty OS Window icon on compositors that implement the xdg-toplevel-icon protocol

This commit is contained in:
Kovid Goyal
2025-03-10 12:32:03 +05:30
parent ce6425e1d4
commit 3b8e0e209b
10 changed files with 134 additions and 39 deletions

View File

@@ -102,6 +102,8 @@ Detailed list of changes
- Fix flickering of hyperlink underline when client program continuously
redraws on mouse movement (:iss:`8414`)
- Wayland: Allow overriding the kitty OS Window icon on compositors that implement the xdg-toplevel-icon protocol
0.40.0 [2025-03-08]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -375,9 +375,11 @@ many alternate icons available, click on an icon to visit its homepage:
:target: https://github.com/sfsam/some_icons
:width: 256
On macOS and X11 you can put :file:`kitty.app.icns` (macOS only) or :file:`kitty.app.png` in the
You can put :file:`kitty.app.icns` (macOS only) or :file:`kitty.app.png` in the
:ref:`kitty configuration directory <confloc>`, and this icon will be applied
automatically at startup. On X11, this will set the icon for kitty windows.
automatically at startup. On X11 and Wayland, this will set the icon for kitty windows.
Note that not all Wayland compositors support the `protocol needed <https://wayland.app/protocols/xdg-toplevel-icon-v1>`__
for changing window icons.
Unfortunately, on macOS, Apple's Dock does not change its cached icon so the
custom icon will revert when kitty is quit. Run the following to force the Dock