[Bug][Linux/Wayland] Window capture distorts aspect ratio, drops cursor/clicks, and cannot import .cap bundles via portal
维护者通常 1 天内回复
评估
调研方向
The issue describes Wayland window capture, cursor telemetry, and .cap import through the XDG Desktop Portal, but names no source files or tests. Start by locating the Linux capture and portal file-picker entry points and their related tests. The work is done when window dimensions are preserved, cursor and click events are captured, and .cap bundles can be selected for import; linked PR #2420 is already open.
由索引模型根据 Issue 内容生成。
描述
Description
On Linux (Wayland), screen recording encounters three significant limitations when capturing windows and managing projects:
- Aspect Ratio Distortion: Capturing non-16:9 windows (e.g. mobile emulators in 9:16 portrait orientation) forces the stream into monitor bounds, stretching the window horizontally instead of preserving its native dimensions.
- Missing Cursor & Click Telemetry: On Wayland, cursor capture stubbed out with empty events (
moves: vec![], clicks: vec![]), completely disabling Cap's zoom/click wave features. - Project Import Failure: XDG Desktop Portal FileChooser does not recognize
.capdirectory bundles as selectable files, entering the folder rather than importing the project.
Reproduction
- Run Cap on Linux under a Wayland session (tested on KDE Plasma 6).
- Start a Window recording and select any non-16:9 window (e.g. Android Emulator / narrow browser window).
- Notice that the resulting recording is stretched to 16:9.
- Notice that mouse movements and click ripples are missing from the preview.
- In Editor, try to "Add Clip" and pick a
.caprecording folder - portal file picker navigates inside instead of selecting the project.
Additional Context
- Cap version: 0.6+
- Operating system, version: EndeavourOS / Arch Linux, KDE Plasma 6 (KWin Wayland)
Screenshots
- 主要语言
- Rust
- 星标
- 23k
- 派生
- 2k
- 平均合并
- 19 小时 50 分钟
- 30 天内合并 PR
- 72
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
CapSoftware/Cap 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
CapSoftware/Cap#2384 · 1 条评论 ·
维护者通常 1 天内回复
-
Dashboard pagination causes full page reloads on self-hosted Cap可能已有人在做 @Dewin 于 20 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
CapSoftware/Cap#2305 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
CapSoftware/Cap#1714 · 3 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
CapSoftware/Cap#2409 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 64/100
CapSoftware/Cap#2408 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
bmander/geomsolver#118 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
Three Windows builds are keyed on a later release than their layout可能已有人在做 @ero-qt 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
priority:P3 type:docs
难度 2/5 1-3 小时 新手友好度 85/100
sebastian-software/ferroni#253 ·
维护者通常 1 天内回复