Skip to content

fix(windows): hide native titlebar on Windows - #178

Open
arafuls wants to merge 1 commit into
LovelessCodes:releasefrom
arafuls:fix/frameless-windows-titlebar
Open

fix(windows): hide native titlebar on Windows#178
arafuls wants to merge 1 commit into
LovelessCodes:releasefrom
arafuls:fix/frameless-windows-titlebar

Conversation

@arafuls

@arafuls arafuls commented Aug 5, 2026

Copy link
Copy Markdown

Summary

Fixes a duplicate titlebar on Windows: the native OS titlebar was showing alongside the app's own custom-drawn titlebar/window controls.

Changes

  • Disabled native window decorations on Windows (previously only Linux had them off).
  • Excluded DECORATIONS from tauri-plugin-window-state's tracked flags. It defaults to persisting/restoring decoration state per-window, which silently overrode the builder setting on subsequent launches.

Related Issues

Closes #166

Screenshots / Demos (if applicable)

Windows 11

image

Checklist

  • I have linked related issues using #
  • I have updated documentation where appropriate
  • I have verified backward compatibility or noted breaking changes
  • I have run linters/formatters and addressed warnings

Breaking Changes (if any)

Please test this on MacOS/Linux as I do not have them available currently.

Additional Context

Existing users have a .window-state.json with decorated: true saved from before this fix. Without the plugin flag change, that stale value would keep overriding the new decorations setting on every launch, so both changes are required together.

Reviewers

@LovelessCodes

The app already draws its own titlebar/window controls on Windows, so
disable native decorations there too (previously only Linux). Also
exclude DECORATIONS from tauri-plugin-window-state's tracked flags —
it defaults to persisting/restoring decoration state per-window,
which silently overrode the builder setting on subsequent launches.
@arafuls
arafuls requested a review from LovelessCodes as a code owner August 5, 2026 06:20
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.

Double Title Bar

1 participant