Skip to content

fix(tray-icon): bump tray-icon to 0.25 and muda to 0.20 (fix #16035) - #16088

Merged
lucasfernog merged 4 commits into
tauri-apps:devfrom
stephenkiers:bump-tray-icon-0-25
Sep 25, 2026
Merged

lucasfernog merged 4 commits into
tauri-apps:devfrom
stephenkiers:bump-tray-icon-0-25

Conversation

@stephenkiers

Copy link
Copy Markdown
Contributor

Summary

Closes #16035. Bumps tray-icon from 0.24 to 0.25 and muda from 0.19 to 0.20 (required by tray-icon 0.25.1's own ^0.20 constraint) to pick up tray-icon#365, which fixes left-click events on the tray icon being swallowed by the native menu on macOS 27.

Root cause per the upstream fix: the macOS tray backend kept the NSMenu attached to the status item via setMenu: at all times. On macOS 27, AppKit started swallowing left-click events into its own menu-tracking before the crate's click-detection view ever received them. 0.25.1 fixes this by only attaching the menu while it's actually being presented.

@amrbashir noted on #16035 that the fix "will be available in the next release" — this PR is the corresponding dependency bump, since 2.11.6 shipped after that comment without it.

Feature flag renames

Both crates renamed some feature flags in this version range:

  • tray-icon: gtk → forwards to muda-gtk3; libxdo → muda-libxdo; common-controls-v6 → muda-common-controls-v6
  • muda: gtk → gtk3 (muda 0.20 added separate gtk3/gtk4 features)

crates/tauri/Cargo.toml is updated to match (gtk → gtk3 for the direct muda dep, gtk → muda-gtk3 for the tray-icon dep's forwarded feature, etc.), preserving the existing default behavior (gtk3-based Linux tray, libxdo enabled where it already was).

Test plan

  • cargo check -p tauri --features tray-icon,common-controls-v6 — clean build on macOS
  • cargo check -p tauri --all-features — clean build on macOS
  • cargo test -p tauri --features tray-icon,common-controls-v6 --lib — 70/70 tests pass, including tests::aliased_features_exist and tests::features_are_documented
  • Linux (gtk3/gtk4, libxdo) — not verified, no Linux environment available. The feature-flag renames were mapped from the crates' published Cargo.tomls but the Linux tray backend itself wasn't exercised.
  • Windows — not verified
  • Manual repro of the original macOS 27 left-click bug — not verified against a real macOS 27 build; verification here is limited to build/test success against the reporter's own diagnosis and the upstream fix's commit message.

@stephenkiers
stephenkiers requested a review from a team as a code owner September 22, 2026 17:39
@socket-security

socket-security Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedcargo/​muda@​0.19.1 ⏵ 0.20.080 -1810093100100
Updatedcargo/​tray-icon@​0.24.0 ⏵ 0.25.182 -1810093100100

View full report

…ps#16035)

tray-icon 0.24's macOS backend keeps the native NSMenu attached to the
status item at all times via setMenu:, which on macOS 27 causes AppKit
to swallow left-click events into its own menu-tracking before the
crate's click-detection view ever sees them. tray-icon 0.25.1 (via
tray-icon#365) fixes this by only attaching the menu while it's
actually being presented.

muda bumped alongside it to satisfy tray-icon 0.25.1's own `^0.20`
requirement. Both crates renamed some feature flags in this range
(tray-icon's `gtk`/`libxdo`/`common-controls-v6` now forward through
`muda-gtk3`/`muda-libxdo`/`muda-common-controls-v6`; muda's own `gtk`
became `gtk3`), updated here accordingly.

Verified: `cargo check -p tauri --features tray-icon,common-controls-v6`
and `--all-features` both build clean on macOS; `cargo test -p tauri
--features tray-icon,common-controls-v6 --lib` passes all 70 tests.
Linux gtk3/gtk4 and libxdo paths are unverified — no Linux environment
available to test them.
Comment thread .changes/bump-tray-icon-0-25.md Outdated
@@ -0,0 +1,5 @@
---
tauri: patch:deps

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.

Suggested change
tauri: patch:deps
tauri: minor:bug

Even though it is a dependency bump, I think it is appropriate to flag as bug fix in the changelog

Also because we have https://docs.rs/tauri/latest/tauri/tray/struct.TrayIcon.html#method.with_inner_tray_icon, we need to make this a minor release

@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Package Changes Through 4381cc8

There are 14 changes which include tauri with minor, tauri-utils with minor, tauri-cli with minor, @tauri-apps/cli with minor, tauri-build with minor, tauri-runtime with minor, tauri-runtime-wry with minor, @tauri-apps/api with minor, tauri-bundler with minor, tauri-codegen with minor, tauri-macos-sign with minor, tauri-macros with minor, tauri-plugin with minor, tauri-driver with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.11.1 2.12.0
tauri-utils 2.9.3 2.10.0
tauri-macos-sign 2.3.4 2.4.0
tauri-bundler 2.9.4 2.10.0
tauri-runtime 2.11.3 2.12.0
tauri-runtime-wry 2.11.4 2.12.0
tauri-codegen 2.6.3 2.7.0
tauri-macros 2.6.3 2.7.0
tauri-plugin 2.6.3 2.7.0
tauri-build 2.6.3 2.7.0
tauri 2.11.5 2.12.0
@tauri-apps/cli 2.11.4 2.12.0
tauri-cli 2.11.4 2.12.0
tauri-driver 2.0.6 2.1.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@lucasfernog lucasfernog added this to the 2.12 milestone Sep 25, 2026
@lucasfernog
lucasfernog merged commit 97f6666 into tauri-apps:dev Sep 25, 2026
29 checks passed
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.

[bug] menuOnLeftClick for tray icons broken on macOS 27

3 participants