Skip to content

fix(window): adapt Linux native maximize constraints to the work area - #7

Merged
Kvxin merged 1 commit into
mainfrom
devin/1794883927-linux-native-maximize
Nov 17, 2026
Merged

Kvxin merged 1 commit into
mainfrom
devin/1794883927-linux-native-maximize

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Linux 固定的 1100×680 最小客户区尺寸可能超过小屏幕或高缩放下的可用工作区,导致系统标题栏的最大化无法正常生效。现在按当前显示器工作区和缩放限制最小尺寸,为系统装饰预留空间;启动时缩小超出工作区的普通窗口,并在移动、缩放和重新获得焦点时更新约束。保留 Linux 原生标题栏及已有窗口按钮偏好,新增 4 项尺寸适配回归测试。

本地验证通过:

  • pnpm build:renderer(包含类型检查)
  • pnpm test:window-controls && pnpm test:storage && pnpm test:updater(45 项测试)
  • cargo fmt --check --manifest-path src-tauri/Cargo.toml
  • cargo clippy --locked --manifest-path src-tauri/Cargo.toml -- -D warnings
  • cargo test --locked --manifest-path src-tauri/Cargo.toml --lib(17 项测试)
  • cargo build --locked --manifest-path src-tauri/Cargo.toml

尚未在用户的 Debian 13 桌面会话上验证原生最大化按钮;还需结合其桌面环境、X11/Wayland 会话、分辨率和缩放比例确认是否另有 GTK/窗口管理器兼容问题。

Link to Devin session: https://app.devin.ai/sessions/77e37c185ab24a0bbe69fdd4efbee0a5
Open in Devin Desktop: https://app.devin.ai/desktop/session/77e37c185ab24a0bbe69fdd4efbee0a5?variant=devin
Requested by: @Kvxin


🟢 Devin Review found nothing to fix · View findings

Devin Review

Co-Authored-By: Epoch _Op <3253261317@qq.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

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.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@Kvxin
Kvxin merged commit 8ff5716 into main Nov 17, 2026
5 checks passed
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.

1 participant