plugins-workspace icon indicating copy to clipboard operation
plugins-workspace copied to clipboard

[positioner] v2 alpha TrayCenter is not in the correct location

Open seanaye opened this issue 2 years ago • 3 comments

In rust when calling move_window to the Position::TrayCenter the acutal position is off on MacOS 13.5.1

                let tray = tauri::tray::TrayIconBuilder::new()
                    .icon(icon)
                    .on_tray_icon_event(|tray, event| {
                        let app = tray.app_handle();
                        tauri_plugin_positioner::on_tray_event(app, &event);
                        match event.click_type {
                            ClickType::Left => {
                                if let Some(window) = app.get_window("main") {
                                    let _ = window.move_window(Position::TrayCenter);
Screenshot 2023-10-11 at 11 37 45 AM

seanaye avatar Oct 11 '23 17:10 seanaye

Hi, is this the same as this https://github.com/tauri-apps/plugins-workspace/issues/724 ? == Does it only occur if you have an external monitor connected?

FabianLars avatar Nov 14 '23 08:11 FabianLars

@FabianLars I don't believe it is quite the same issue. I compiled my app with 0 external monitors. Just the M1 Macbook screen and it is still in the incorrect postion. Screenshot 2023-11-26 at 3 31 23 PM

seanaye avatar Nov 26 '23 20:11 seanaye

this project is open source if you want a repro https://github.com/seanaye/boom

seanaye avatar Nov 26 '23 20:11 seanaye