Fix unclickable Linux window controls on GNOME/Wayland#1334
Open
iron6909 wants to merge 1 commit intofarion1231:mainfrom
Open
Fix unclickable Linux window controls on GNOME/Wayland#1334iron6909 wants to merge 1 commit intofarion1231:mainfrom
iron6909 wants to merge 1 commit intofarion1231:mainfrom
Conversation
Owner
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
farion1231
reviewed
Mar 7, 2026
| { | ||
| "label": "main", | ||
| "title": "CC Switch", | ||
| "titleBarStyle": "Visible", |
Owner
There was a problem hiding this comment.
titleBarStyle: "Visible" 理论上在当前项目使用的 Tauri 2.8 上对 Linux 不生效,实机测试如何?
|
|
||
| <header | ||
| className="fixed z-50 w-full transition-all duration-300 bg-background/80 backdrop-blur-md" | ||
| data-tauri-drag-region |
Owner
There was a problem hiding this comment.
移除 data-tauri-drag-region,理论上只能影响 webview 里的自定义 header,不可能修复 GNOME/Wayland 的原生 GTK 标题栏按钮。实际效果更像是引入功能回退:应用内 header 区域失去拖拽和双击最大化能力
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Problem
On Ubuntu 24.04 / GNOME 46 / Wayland, the main window's maximize and close buttons can appear but not receive clicks.
Root cause
Linux was still inheriting the shared window setup while the frontend also marked the custom header as a Tauri drag region. In GNOME/Wayland this can leave the native controls underneath an overlapping custom title/header area.
Fix
src-tauri/tauri.linux.conf.jsonwithtitleBarStyle: "Visible"!isLinux()in:src/App.tsxsrc/components/common/FullScreenPanel.tsxValidation
corepack pnpm test:unitcorepack pnpm build:renderer