Repository navigation
fix(window): adapt Linux native maximize constraints to the work area - #7
Merged
Merged
Conversation
Co-Authored-By: Epoch _Op <3253261317@qq.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
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
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.tomlcargo clippy --locked --manifest-path src-tauri/Cargo.toml -- -D warningscargo 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