Bug 510073 - Kwin window icon tracking
Summary: Kwin window icon tracking
Status: RESOLVED DUPLICATE of bug 466599
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (other bugs)
Version First Reported In: 6.4.5
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-29 21:25 UTC by Damglador
Modified: 2025-09-29 22:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Damglador 2025-09-29 21:25:50 UTC
SUMMARY
The issue: the way kwin tracks window icons is different from how icon-only taskbar does it. When specifying StartupWMClass in desktop file of an app, icon-only taskbar considers it when picking an icon for the application, but kwin does not, which makes the way kwin tracks window icons inferior to how icon-only taskbar does it.

The way GNOME tracks window icons also seem to respect StartupWMClass [1][2].

For me, the issue occurs with the following software:
- Ente Auth (https://aur.archlinux.org/packages/ente-auth-bin)
- Signal Desktop (https://archlinux.org/packages/extra/x86_64/signal-desktop/)
- YouTube Music (https://aur.archlinux.org/packages/youtube-music-bin)

For all of them, the desktop file name doesn't match the WM class name, but the desktop file specifies it with StartupWMClass, which makes the icon-only taskbar use the proper icon, but not kwin.

STEPS TO REPRODUCE
1. Install and launch any of the software listed above
2. Look at their window icon, alt-tab menu icon and the icon in icon-only taskbar

OBSERVED RESULT
The icon in alt-tab menu and on the window decoration is the default Wayland icon, but the icon-only taskbar it is what it should be.

EXPECTED RESULT
The icon kwin uses for an application should match what icon-only taskbar uses

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.7-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 16 GiB of RAM (13.5 GiB usable)
Graphics Processor 1: AMD Radeon Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU

ADDITIONAL INFORMATION
[1] https://github.com/ytmd-devs/ytmd/issues/2806#issuecomment-2584973530 
[2] https://aur.archlinux.org/packages/youtube-music#comment-1003960
https://github.com/ytmd-devs/ytmd/issues/2806
Comment 1 Nate Graham 2025-09-29 22:51:02 UTC

*** This bug has been marked as a duplicate of bug 466599 ***