Linux X11: no cursor telemetry, so no follow-cursor zoom

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
electron, typescript
领域
backend, desktop

调研方向

Start with src/hooks/useScreenRecorder.ts and trace how effectiveBrowserCursorMode selects system on Linux X11 and where cursor positions are recorded. Check the browser capture path and whether Chromium honours getDisplayMedia with cursor: "never" on X11; the issue leaves this unverified and offers an alternative of recording positions in system mode. Done means cursor-follow zoom works on X11 without drawing a duplicate cursor, while Wayland, macOS and Windows remain unaffected.

由索引模型根据 Issue 内容生成。

描述

Follow-up to #1491 / #1492.

Since #1492, recording works on Linux X11 sessions, but no cursor positions are recorded there: auto-zoom that follows the cursor and the editable cursor overlay are unavailable.

Why: on the browser capture path outside Windows, effectiveBrowserCursorMode (src/hooks/useScreenRecorder.ts) forces system, because Chromium bakes the real cursor into the X11 frames. Keeping editable-overlay would draw a second cursor on top. Cursor positions are only recorded in editable-overlay mode, on every platform.

Possible directions

  • Exclude the cursor from the X11 capture (e.g. getDisplayMedia with cursor: "never", if Chromium honours it on X11 — unverified), then lift the system override there.
  • Record cursor positions in system mode too (for follow-cursor zoom), without drawing an overlay.

Wayland, macOS and Windows are not affected.

主要语言
TypeScript
星标
3.7k
派生
231
平均合并
19 小时 7 分钟
30 天内合并 PR
266

环境准备

从这里开始

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

getopenscreen/openscreen 的其他 Issue

查看 getopenscreen/openscreen 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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