You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Wayland toplevel icon protocol] icon parameter for BaseWindow doesn't work #49285
changed the title [-][Wayland] win.setIcon works but icon parameter for BrowserWindow doesn't work[/-][+][Wayland toplevel icon protocol] win.setIcon works but icon parameter for BrowserWindow doesn't work[/+]on Dec 30, 2025
changed the title [-][Wayland toplevel icon protocol] win.setIcon works but icon parameter for BrowserWindow doesn't work[/-][+][Wayland toplevel icon protocol] icon parameter for BaseWindow doesn't work[/+]on Jan 1, 2026
Thanks for explaining, @alexsch01, and for working on a PR!
Could you restore the previous text on #45638 from the edit history and instead leave a comment explaining why you closed the issue? That's much better for historical context when someone looks at the issue in the future. Thank you! :)
We'd leave the component/BaseWindow tag on this issue because that's the part of Electron that's affected. It doesn't matter which file the change is made in. BaseWindow is where the app developer will experience the issue. :)
@alexsch01 Nobody is assigned to PRs on the Electron repository.
When maintainers have time, they pick PRs they want to review. Someone should get to it soon. Due to the quiet period during December, there is currently a large backlog of PRs to go through, so it might take a little bit longer than usual.
Activity
nikwen commentedon Dec 30, 2025
Thanks for opening this issue!
What's the reason for closing the existing issue #45638 and marking it as replaced by this one?
alexsch01 commentedon Dec 30, 2025
I realized top-level icon protocol was working since it inherited it from chromium code
[-][Wayland] win.setIcon works but icon parameter for BrowserWindow doesn't work[/-][+][Wayland toplevel icon protocol] win.setIcon works but icon parameter for BrowserWindow doesn't work[/+][-][Wayland toplevel icon protocol] win.setIcon works but icon parameter for BrowserWindow doesn't work[/-][+][Wayland toplevel icon protocol] icon parameter for BaseWindow doesn't work[/+]alexsch01 commentedon Jan 1, 2026
Made the example smaller and replaced BrowserWindow with BaseWindow
Used electron/build-tools to build the electron source code
In
electron/src/ui/ozone/platform/wayland/host/wayland_toplevel_window.cchttps://github.com/chromium/chromium/blob/a5f7d6da96c4c6d476a301909ccf27a4e76aa261/ui/ozone/platform/wayland/host/wayland_toplevel_window.cc#L331-L335
xdg_toplevel_is NULL when this issue happensnikwen commentedon Jan 2, 2026
Thanks for explaining, @alexsch01, and for working on a PR!
Could you restore the previous text on #45638 from the edit history and instead leave a comment explaining why you closed the issue? That's much better for historical context when someone looks at the issue in the future. Thank you! :)
alexsch01 commentedon Jan 2, 2026
Done!
alexsch01 commentedon Jan 3, 2026
nikwen commentedon Jan 3, 2026
Thanks for updating the old issue!
We'd leave the
component/BaseWindowtag on this issue because that's the part of Electron that's affected. It doesn't matter which file the change is made in.BaseWindowis where the app developer will experience the issue. :)alexsch01 commentedon Jan 6, 2026
@nikwen who could be assigned for the PR? I'm sorry I haven't contributed to Electron before
alexsch01 commentedon Jan 8, 2026
I just signed my commit
nikwen commentedon Jan 9, 2026
@alexsch01 Nobody is assigned to PRs on the Electron repository.
When maintainers have time, they pick PRs they want to review. Someone should get to it soon. Due to the quiet period during December, there is currently a large backlog of PRs to go through, so it might take a little bit longer than usual.