Skip to content

fix: make toplevel icon Wayland protocol work - #49290

Merged
codebytere merged 1 commit into
electron:mainfrom
alexsch01:fix-wayland-icon-toplevel-protocol
Jan 16, 2026
Merged

codebytere merged 1 commit into
electron:mainfrom
alexsch01:fix-wayland-icon-toplevel-protocol

Conversation

@alexsch01

@alexsch01 alexsch01 commented Jan 1, 2026 •

Copy link
Copy Markdown
Contributor

Description of Change

Fixes #49285

When an Electron window gets hidden (no icon on taskbar) on Wayland, the icon for toplevel-icon protocol doesn't exist anymore. Override the DesktopWindowTreeHostLinux::SetWindowIcons and DesktopWindowTreeHostLinux::Show methods to save and use the icon.


Before PR

17676350283315396058002198480807

After PR

1767635063050740171516800877481

Checklist

Release Notes

Notes: Make toplevel icon Wayland protocol work.

@welcome

welcome Bot commented Jan 1, 2026

Copy link
Copy Markdown

💖 Thanks for opening this pull request! 💖

Semantic PR titles

We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix.

Examples of commit messages with semantic prefixes:

  • fix: don't overwrite prevent_default if default wasn't prevented
  • feat: add app.isPackaged() method
  • docs: app.isDefaultProtocolClient is now available on Linux

Commit signing

This repo enforces commit signatures for all incoming PRs.
To sign your commits, see GitHub's documentation on Telling Git about your signing key.

PR tips

Things that will help get your PR across the finish line:

  • Follow the JavaScript, C++, and Python coding style.
  • Run npm run lint locally to catch formatting errors earlier.
  • Document any user-facing changes you've made following the documentation styleguide.
  • Include tests when adding/changing behavior.
  • Include screenshots and animated GIFs whenever possible.

We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can.

@alexsch01

Copy link
Copy Markdown
Contributor Author

Can someone add the tag semver/patch to this?

@alexsch01 alexsch01 closed this Jan 13, 2026
@alexsch01 alexsch01 reopened this Jan 13, 2026

@codebytere codebytere left a comment

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.

Small nits for simplification but looks good to me otherwise. Thanks for addressing this and sorry for the holiday review delay!

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. labels Jan 14, 2026
@alexsch01

Copy link
Copy Markdown
Contributor Author

All tests passing!

@alexsch01
alexsch01 requested a review from codebytere January 16, 2026 01:20
@codebytere
codebytere merged commit bdd7730 into electron:main Jan 16, 2026
@welcome

welcome Bot commented Jan 16, 2026

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉🎉🎉

@release-clerk

release-clerk Bot commented Jan 16, 2026

Copy link
Copy Markdown

Release Notes Persisted

Make toplevel icon Wayland protocol work.

@trop

trop Bot commented Jan 16, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "40-x-y", please check out #49414

@trop trop Bot added in-flight/40-x-y and removed target/40-x-y PR should also be added to the "40-x-y" branch. labels Jan 16, 2026
@trop

trop Bot commented Jan 16, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "39-x-y", please check out #49415

@trop trop Bot added in-flight/39-x-y merged/39-x-y PR was merged to the "39-x-y" branch. merged/40-x-y PR was merged to the "40-x-y" branch. and removed target/39-x-y PR should also be added to the "39-x-y" branch. in-flight/39-x-y in-flight/40-x-y labels Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged/39-x-y PR was merged to the "39-x-y" branch. merged/40-x-y PR was merged to the "40-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Wayland toplevel icon protocol] icon parameter for BaseWindow doesn't work

2 participants