Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(macos): set default title-bar style to Visible, close #10225 #10297

Merged
merged 2 commits into from
Jul 17, 2024

Conversation

pewsheen
Copy link
Contributor

Fix: #10225

I'm unsure what happened inside, but setting it to Visible can fix the issue.
It also happened when creating the WKWebView in the Xcode project, so I guess it depends on how the OS implements the window.

@pewsheen pewsheen requested a review from a team as a code owner July 16, 2024 06:35
@pewsheen pewsheen force-pushed the fix/macos-default-visible-titlebar branch from cfe3945 to 96d0a34 Compare July 16, 2024 06:48
@pewsheen pewsheen force-pushed the fix/macos-default-visible-titlebar branch from 96d0a34 to 5a13d74 Compare July 16, 2024 06:54
Copy link
Member

@ahkohd ahkohd left a comment

Choose a reason for hiding this comment

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

lgtm!


#[cfg(target_os = "macos")]
{
builder = builder.title_bar_style(TitleBarStyle::Visible);
Copy link
Member

Choose a reason for hiding this comment

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

This sounds like a workaround, because it breaks if user choses another title bar style. Let's add a comment why this workaround exists and backlink to the issue. Also add a TODO to find a proper fix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added

@amrbashir amrbashir merged commit 9546548 into tauri-apps:dev Jul 17, 2024
20 checks passed
@pewsheen pewsheen deleted the fix/macos-default-visible-titlebar branch July 17, 2024 05:47
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] Tauri v2 MacOS: Window Snapping Issue tauri.conf.json vs Custom Rust Windows
3 participants