From 9dcc0cf1b11bdc1eac7d20b9cbf6c41407440ce4 Mon Sep 17 00:00:00 2001 From: Jonathan Baudanza Date: Sun, 14 Dec 2025 15:13:43 -0500 Subject: [PATCH 1/3] fix(macOS): correct value for work_area.position.y --- crates/tauri-runtime-wry/src/monitor/macos.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/tauri-runtime-wry/src/monitor/macos.rs b/crates/tauri-runtime-wry/src/monitor/macos.rs index 6ed9f3c1dd56..eb08609a8bb2 100644 --- a/crates/tauri-runtime-wry/src/monitor/macos.rs +++ b/crates/tauri-runtime-wry/src/monitor/macos.rs @@ -19,6 +19,10 @@ impl super::MonitorExt for tao::monitor::MonitorHandle { position.x += visible_frame.origin.x - screen_frame.origin.x; + // visible_frame.origin is using a bottom-up coordinate system, so this needs to be converted + // to a top-down coordinate system. origin.y will typically represent the top of the dock. + position.y += screen_frame.size.height - visible_frame.origin.y - visible_frame.size.height; + PhysicalRect { size: LogicalSize::new(visible_frame.size.width, visible_frame.size.height) .to_physical(scale_factor), From 926032c38162605200a1849b881eec31b2099614 Mon Sep 17 00:00:00 2001 From: Jonathan Baudanza Date: Thu, 30 Apr 2026 22:16:06 +0900 Subject: [PATCH 2/3] Update macos.rs Co-authored-by: Lucas Fernandes Nogueira --- crates/tauri-runtime-wry/src/monitor/macos.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/crates/tauri-runtime-wry/src/monitor/macos.rs b/crates/tauri-runtime-wry/src/monitor/macos.rs index eb08609a8bb2..f56a48884ef2 100644 --- a/crates/tauri-runtime-wry/src/monitor/macos.rs +++ b/crates/tauri-runtime-wry/src/monitor/macos.rs @@ -19,10 +19,8 @@ impl super::MonitorExt for tao::monitor::MonitorHandle { position.x += visible_frame.origin.x - screen_frame.origin.x; - // visible_frame.origin is using a bottom-up coordinate system, so this needs to be converted - // to a top-down coordinate system. origin.y will typically represent the top of the dock. - position.y += screen_frame.size.height - visible_frame.origin.y - visible_frame.size.height; - +position.y += (screen_frame.origin.y + screen_frame.size.height) + - (visible_frame.origin.y + visible_frame.size.height); PhysicalRect { size: LogicalSize::new(visible_frame.size.width, visible_frame.size.height) .to_physical(scale_factor), From 99defe0f8559955f9caa9aef4f9e8dcfbdd9ec13 Mon Sep 17 00:00:00 2001 From: Jonathan Baudanza Date: Thu, 30 Apr 2026 22:51:14 +0900 Subject: [PATCH 3/3] Add change file for #14655 --- .changes/work-area.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .changes/work-area.md diff --git a/.changes/work-area.md b/.changes/work-area.md new file mode 100644 index 000000000000..0c7422f347aa --- /dev/null +++ b/.changes/work-area.md @@ -0,0 +1,6 @@ +--- +"tauri": patch:bug +"tauri-runtime-wry": patch:bug +--- + +Fix monitor work area Y position on macOS.