Skip to content

fix: monitor work_area on macOS - #13309

Merged
lucasfernog merged 1 commit into
devfrom
fix/macos-workarea
Apr 25, 2025
Merged

fix: monitor work_area on macOS#13309
lucasfernog merged 1 commit into
devfrom
fix/macos-workarea

Conversation

@lucasfernog

Copy link
Copy Markdown
Member

macOS uses a different coordinate system for visibleFrame, so to get accurate values we should only get the diff between frame() and visibleFrame() and apply that to the standard monitor position returned by CGDisplayBounds. Size isn't impacted by this, and properly returns the value (accounting for dock position).

macOS uses a different coordinate system for visibleFrame, so to get accurate values we should only get the diff between frame() and visibleFrame() and apply that to the standard monitor position returned by CGDisplayBounds. Size isn't impacted by this, and properly returns the value (accounting for dock position).
@lucasfernog
lucasfernog requested a review from a team as a code owner April 25, 2025 23:06
@github-actions

Copy link
Copy Markdown
Contributor

Package Changes Through d9ca743

There are 2 changes which include tauri with minor, @tauri-apps/api with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.5.0 2.6.0
tauri 2.5.1 2.6.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant