Skip to content

fix(macOS): fix incorrect window position on multi-monitor setups#15250

Merged
lucasfernog merged 5 commits into
tauri-apps:devfrom
polw1:fix/macos-window-position
Apr 30, 2026
Merged

fix(macOS): fix incorrect window position on multi-monitor setups#15250
lucasfernog merged 5 commits into
tauri-apps:devfrom
polw1:fix/macos-window-position

Conversation

@polw1

@polw1 polw1 commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes #12167 where windows were not correctly positioned when created on a second display on macOS.

Applying set_outer_position(...) after window creation resolves the issue, as recommended by the tao docs:

macOS: The top left corner position of the window content, the window’s “inner” position.
The window title bar will be placed above it.
The window will be positioned such that it fits on screen, maintaining set inner_size if any.
If you need to precisely position the top left corner of the whole window, you have to use Window::set_outer_position after creating the window.

@polw1 polw1 changed the title fix(macos): use set_outer_position for second-monitor window placement fix(macOS): fix incorrect window position on multi-monitor setups Apr 16, 2026
@polw1
polw1 force-pushed the fix/macos-window-position branch from ef1454d to 09bfd71 Compare April 17, 2026 11:53
@polw1
polw1 marked this pull request as ready for review April 17, 2026 17:31
@polw1
polw1 requested a review from a team as a code owner April 17, 2026 17:31
@github-actions

github-actions Bot commented Apr 30, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 94963f6

There are 12 changes which include tauri with minor, @tauri-apps/api with minor, tauri-macros with minor, tauri-build with minor, tauri-macos-sign with patch, tauri-bundler with minor, @tauri-apps/cli with minor, tauri-cli with minor, tauri-runtime with minor, tauri-runtime-wry with minor, tauri-utils with minor, tauri-plugin 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.10.1 2.11.0
tauri-utils 2.8.3 2.9.0
tauri-macos-sign 2.3.3 2.3.4
tauri-bundler 2.8.1 2.9.0
tauri-runtime 2.10.1 2.11.0
tauri-runtime-wry 2.10.1 2.11.0
tauri-codegen 2.5.5 2.5.6
tauri-macros 2.5.5 2.6.0
tauri-plugin 2.5.4 2.6.0
tauri-build 2.5.6 2.6.0
tauri 2.10.3 2.11.0
@tauri-apps/cli 2.10.1 2.11.0
tauri-cli 2.10.1 2.11.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

@lucasfernog lucasfernog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pretty good!

@lucasfernog
lucasfernog merged commit 110336c into tauri-apps:dev Apr 30, 2026
19 checks passed
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.

[bug] WebviewWindow is not created at position on macOS

2 participants