tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[feat] Listening events for tray icons

Open DWHengr opened this issue 1 year ago • 2 comments

Describe the problem

Listening events for tray icons, such as mouse entry/leave, etc. And return to the position of the mouse and the position of the system tray.

Describe the solution you'd like

pub enum SystemTrayEvent {
    Entry {
        tray_id: String,
        position: PhysicalPosition<f64>,
        size: PhysicalSize<f64>,
    },
    Leave {
        tray_id: String,
        position: PhysicalPosition<f64>,
        size: PhysicalSize<f64>,
    }
}

Alternatives considered

No response

Additional context

No response

DWHengr avatar Jan 11 '24 04:01 DWHengr

Is there any way to achieve similar functionality in the v1 version?

DWHengr avatar May 09 '24 10:05 DWHengr

Similar to the "mouse-leave" and "mouse-enter" events in electronjs.

DWHengr avatar May 09 '24 11:05 DWHengr