Skip to content

feat: expose X11 window icons - #2160

Open
FreddyFunk wants to merge 2 commits into
Smithay:masterfrom
FreddyFunk:feat/x11-window-icons
Open

feat: expose X11 window icons#2160
FreddyFunk wants to merge 2 commits into
Smithay:masterfrom
FreddyFunk:feat/x11-window-icons

Conversation

@FreddyFunk

Copy link
Copy Markdown

Description

Parse bounded _NET_WM_ICON image records and expose all valid sizes through X11Surface. Advertise and report runtime icon property updates and removals. This allows compositors to properly propagate window metadata.

I noticed that icons and application names are not properly shown for video games launched through Steam in COSMIC dock. This is one of the building blocks to make it work.

Checklist

Comment thread src/xwayland/xwm/surface.rs Outdated
title: String,
class: String,
instance: String,
icons: Vec<X11SurfaceIcon>,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Can we avoid permanently storing the pixel data in each X11Surface?

If a compositor decides to this (e.g. via UserData), that is one thing. But I think smithay should simply notify the compositor, when there is new image data and then fetch the data upon request from Xwayland.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's a way better design. I implemented it now according to your suggestion.

@FreddyFunk
FreddyFunk force-pushed the feat/x11-window-icons branch from a4aca9e to 6f38229 Compare September 10, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants