Skip to content

Commit 9808236

Browse files
fix(macOS): correct value for work_area.position.y (#14655)
* fix(macOS): correct value for work_area.position.y * Update macos.rs Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app> * Add change file for #14655 --------- Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
1 parent eb0312e commit 9808236

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changes/work-area.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri": patch:bug
3+
"tauri-runtime-wry": patch:bug
4+
---
5+
6+
Fix monitor work area Y position on macOS.

crates/tauri-runtime-wry/src/monitor/macos.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ impl super::MonitorExt for tao::monitor::MonitorHandle {
1919

2020
position.x += visible_frame.origin.x - screen_frame.origin.x;
2121

22+
position.y += (screen_frame.origin.y + screen_frame.size.height)
23+
- (visible_frame.origin.y + visible_frame.size.height);
2224
PhysicalRect {
2325
size: LogicalSize::new(visible_frame.size.width, visible_frame.size.height)
2426
.to_physical(scale_factor),

0 commit comments

Comments
 (0)