Skip to content

feat(client): macOS/Linux 游戏模式焦点还原与平台热键 - #3

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/game-mode-macos-linux-3f48
Sep 17, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/game-mode-macos-linux-3f48

Conversation

@aocac

@aocac aocac commented Sep 17, 2026

Copy link
Copy Markdown
Owner

呼出输入框前记下前台、关闭后再还原,让游戏模式在 macOS / Linux 上也能把焦点还给游戏。不依赖 PR #2,未部署生产。

改动

  • Rust capture_foreground / restore_foreground:Windows Win32、macOS NSRunningApplication、Linux X11(无 DISPLAY 时跳过)
  • macOS 默认快捷键改为 Ctrl+Shift+G(Option+G 会输入 ©);已保存的 Alt+G 会自动迁移;Command 键录成 Command
  • 输入框和浮层开启 visibleOnAllWorkspaces(macOS Spaces)
  • README / architecture / testing / CHANGELOG 去掉「游戏模式仅 Windows」

屏幕采集仍然只在 Windows 上提供。

验证

  • 客户端 vitest 55 全绿;tsc 绿
  • Linux cargo check 绿(x11rb 路径)
  • 物理 overlay / 全局热键 / 焦点还原:需人类物理验收(本环境无桌面会话)
  • 纯 Wayland 无法可靠恢复焦点(已知限制,文档已写)

不包含

Open in Web Open in Cursor 

呼出输入框前记下前台、关闭后还原(Win32 / NSRunningApplication / X11)。
macOS 默认 Ctrl+Shift+G,浮层跟随所有 Spaces;纯 Wayland 无法还原焦点。

Co-authored-by: AppDuck <aocac@users.noreply.github.com>
@aocac
aocac marked this pull request as ready for review September 17, 2026 14:09
Keep both roadmap items done; test baselines 105 server + 55 client.

Co-authored-by: AppDuck <aocac@users.noreply.github.com>
@cursor
cursor Bot merged commit fb1f12e into main Sep 17, 2026
4 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.

2 participants