Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug][Linux/Wayland] Window capture distorts aspect ratio, drops cursor/clicks, and cannot import .cap bundles via portal

未关闭
#2,419 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@EtherealBless 已经在做这个了。

开始于 2026年10月5日。

  • #2420 来自 @EtherealBless —— 未关闭

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust, tauri
领域
backend, desktop

调研方向

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 内容生成。

描述

bug
Description

On Linux (Wayland), screen recording encounters three significant limitations when capturing windows and managing projects:

  1. 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.
  2. 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.
  3. Project Import Failure: XDG Desktop Portal FileChooser does not recognize .cap directory bundles as selectable files, entering the folder rather than importing the project.
Reproduction
  1. Run Cap on Linux under a Wayland session (tested on KDE Plasma 6).
  2. Start a Window recording and select any non-16:9 window (e.g. Android Emulator / narrow browser window).
  3. Notice that the resulting recording is stretched to 16:9.
  4. Notice that mouse movements and click ripples are missing from the preview.
  5. In Editor, try to "Add Clip" and pick a .cap recording 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
Image
主要语言
Rust
星标
23k
派生
2k
平均合并
19 小时 50 分钟
30 天内合并 PR
72

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CapSoftware/Cap 的其他 Issue

查看 CapSoftware/Cap 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。