Skip to content

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

Merged
amrbashir merged 2 commits into
tauri-apps:devfrom
pewsheen:fix/macos-default-visible-titlebar
Jul 17, 2024
Merged

fix(macos): set default title-bar style to Visible, close #10225#10297
amrbashir merged 2 commits into
tauri-apps:devfrom
pewsheen:fix/macos-default-visible-titlebar

Conversation

@pewsheen

Copy link
Copy Markdown
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

@ahkohd ahkohd 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.

lgtm!


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

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.

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
Copy Markdown
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
@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