Bug 512878

Summary: Taskbar icons of Steam game instances appear with seemingly random icons instead of the icons of the games themselves
Product: [Plasma] plasmashell Reporter: kevin <kevinpaul9373>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: kde, kde, kdedev, nate, qydwhotmail
Priority: NOR    
Version First Reported In: 6.4.5   
Target Milestone: 1.0   
Platform: Bazzite   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Snippets showcasing incorrect taskbar icon for Steam game instance (in this case, WarThunder).

Description kevin 2025-12-02 18:20:46 UTC
Created attachment 187311 [details]
Snippets showcasing incorrect taskbar icon for Steam game instance (in this case, WarThunder).

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
Taskbar icons of Steam game instances appear with seemingly random icons instead of the icons of the games themselves.

HOST SYSTEM DETAILS
Operating System: Bazzite 42
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.4-116.bazzite.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 16 GiB of RAM (15.3 GiB usable)
Graphics Processor 1: Intel® UHD Graphics
Graphics Processor 2: NVIDIA GeForce RTX 3060 Laptop GPU
Manufacturer: Micro-Star International Co., Ltd.
Product Name: GE76 Raider 11UE
System Version: REV:1.0

STEPS TO REPRODUCE
1. Open Steam & run a game (the ones I found this issue with were WarThunder and Sekiro)
2. Look at taskbar

OBSERVED RESULT
The game instance on the taskbar appears with a taskbar icon that does not correspond with the game instance's icon (e.g. Etcher? see below)

EXPECTED RESULT
Game instance on taskbar should show game's application icon (e.g. WarThunder should show the WarThunder game icon).
Comment 1 David Redondo 2025-12-03 12:42:35 UTC
The X icon is the default icon when we cannot determine any icon for the window. Please attach the output of running "xprop" and clicking on warthunder.
Comment 2 kevin 2025-12-04 06:45:17 UTC
(In reply to David Redondo from comment #1)
> The X icon is the default icon when we cannot determine any icon for the
> window. Please attach the output of running "xprop" and clicking on
> warthunder.

Hope this helps:
kevin@Linux:~$ xprop -id 0x4c00002
_NET_WM_NAME(UTF8_STRING) = "War Thunder (Vulkan, 64bit)"
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 0, 0, 0, 0
_NET_FRAME_EXTENTS(CARDINAL) = 0, 0, 0, 0
_NET_WM_DESKTOP(CARDINAL) = 0
WM_STATE(WM_STATE):
		window state: Iconic
		icon window: 0x0
_KDE_NET_WM_ACTIVITIES(STRING) = "28d408c4-0a7b-433c-95d7-aa01ecb0a4ab"
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT, _NET_WM_STATE_MAXIMIZED_HORZ, _NET_WM_STATE_HIDDEN, _NET_WM_STATE_FULLSCREEN
XdndAware(ATOM) = BITMAP
WM_PROTOCOLS(ATOM): protocols  _NET_WM_PING, WM_DELETE_WINDOW
_NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 1
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_PID(CARDINAL) = 36542
WM_LOCALE_NAME(STRING) = "C"
WM_HINTS(WM_HINTS):
		Client accepts input or input focus: True
WM_NORMAL_HINTS(WM_SIZE_HINTS):
		user specified location: 0, 0
WM_CLIENT_MACHINE(STRING) = "Linux.attlocal.net"
WM_CLASS(STRING) = "War Thunder (Vulkan, 64bit)", "War Thunder (Vulkan, 64bit)"
WM_NAME(STRING) = "Loading..."
STEAM_GAME(CARDINAL) = 236390
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 33349160
Comment 3 Kai Uwe Broulik 2025-12-04 07:45:33 UTC
I mae a hack to read the STEAM_GAME property to map it to the game desktop file if installed. Not a proper solution though, i wish Steam just did it properly since it knows what game it is. https://github.com/kbroulik/steam-x-proper
Comment 4 Nate Graham 2025-12-08 22:13:40 UTC
As a workaround, what would it take to integrate that into KWin or the Task Manager?