tauri-apps/tauri

[feat] Receive mouse events on inactive window (macOS)

basharovV opened this issue · 0 comments

Describe the problem

Currently we can't receive mouse events when the window is inactive. This causes a couple of quirks in an always on top / picture-in-picture situation:

  • clicking the window to activate it when it's already on top is counterintuitive
  • it's not possible to react to window mouse enter/exit events to change the UI

Examples where this is working: Spotlight, Raycast, Zoom, Apple Music mini-player - button hover states still work even when the app is not active / focused.

Describe the solution you'd like

Add window mouse events (enter, exit, move) for on_window_event when the window is inactive.

Alternatives considered

No response

Additional context

No response