Skip to content

fix(linux): use compact native Wayland decorations - #25

Merged
cheat2001 merged 1 commit into
cheat2001:mainfrom
ChrisLauinger77:codex/compact-linux-titlebar
Sep 16, 2026
Merged

cheat2001 merged 1 commit into
cheat2001:mainfrom
ChrisLauinger77:codex/compact-linux-titlebar

Conversation

@ChrisLauinger77

Copy link
Copy Markdown

Tauri’s pinned Tao 0.35 runtime installs a full GtkHeaderBar on Wayland even though AngKorGit does not add native titlebar content. Under GNOME/Adwaita this produces an unnecessarily tall titlebar.
On Linux only, remove Tao’s injected titlebar during setup and allow GTK/the compositor to provide its default compact decoration. Native window movement, controls, resizing, shadows, corners, themes, and accessibility remain intact. macOS and Windows behavior is unchanged.
This follows the direction of the merged upstream Tao Wayland CSD fix while avoiding an undecorated window and custom web controls.

@ChrisLauinger77

ChrisLauinger77 commented Sep 13, 2026

Copy link
Copy Markdown
Author

before
before
after
after

Not really sure If you see the diff on this screenshot - but its around 10 to 12 px smaller in height after the change

@cheat2001 cheat2001 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Merged, thanks. I'll move the explanation into the project notes, this repo keeps comments out of source files, and wrap the GTK calls so a failure there can only leave the tall bar instead of stopping the app. Good to have a GNOME Wayland tester around.

@cheat2001
cheat2001 merged commit 798d281 into cheat2001:main Sep 16, 2026
6 checks passed
@ChrisLauinger77
ChrisLauinger77 deleted the codex/compact-linux-titlebar branch September 16, 2026 15:59
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.

2 participants