Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Clicking on the tray icon sometimes does not response (macOS) #380

Closed
lucasfernog opened this issue Apr 30, 2022 · 5 comments · Fixed by tauri-apps/tray-icon#69
Closed

Comments

@lucasfernog
Copy link
Member

Describe the bug

right click examples, sometimes no event and no response

11.mov

Reproduction

  1. run app with try menu on macOS
  2. right click try icon

Expected behavior

No response

Platform and versions

Environment
  › OS: Mac OS 12.3.1 X64
  › Node.js: 16.14.0
  › npm: 8.3.1
  › pnpm: Not installed!
  › yarn: 1.22.17
  › rustup: 1.24.3
  › rustc: 1.59.0
  › cargo: 1.59.0
  › Rust toolchain: stable-aarch64-apple-darwin

Packages
  › @tauri-apps/cli [NPM]: 1.0.0-rc.9
  › @tauri-apps/api [NPM]: 1.0.0-rc.4
  › tauri [RUST]: 1.0.0-rc.8,
  › tauri-build [RUST]: 1.0.0-rc.7,
  › tao [RUST]: 0.8.3,
  › wry [RUST]: 0.15.1,

App
  › build-type: bundle
  › CSP: script-src 'unsafe-eval' 'self'; default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self'; img-src 'self' data: http: https:;
  › distDir: ../dist
  › devPath: http://127.0.0.1:8080/
  › framework: Vue.js (Vue CLI)
  › bundler: Webpack

App directory structure
  ├─ dist
  ├─ patches
  ├─ node_modules
  ├─ public
  ├─ scripts
  ├─ .github
  ├─ src-tauri
  ├─ .git
  └─ src
✨  Done in 6.70s.

Stack trace

No response

Additional context

Is it possible that the icon size is causing the problem?
icon_tray_tpl
image

@lucasfernog
Copy link
Member Author

Original issue: tauri-apps/tauri#4003

@lucasfernog
Copy link
Member Author

This was introduced by #291. Seems like we need to reset focus from the button, the next right click is not received unless you click outside of the tray icon.

@lucasfernog
Copy link
Member Author

The weird thing is that if I add let () = msg_send![button, x]; after let () = msg_send![button, performClick: nil]; it is fixed, even though it's a selector that does not exist.

@amrbashir
Copy link
Member

can someone confirm if this issue happens with https://github.com/tauri-apps/tray-icon? @pewsheen maybe?

@pewsheen
Copy link
Contributor

pewsheen commented Aug 2, 2023

can someone confirm if this issue happens with https://github.com/tauri-apps/tray-icon? @pewsheen maybe?

Yeah, the issue still exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants