docs(windows): 独占全屏游戏 capsule/hotkey OS 级限制 (#457)#458
Draft
appergb wants to merge 1 commit into
Draft
Conversation
- coordinator.rs: 在 show_capsule_window_no_activate (Windows 路径) 上方加注释, 说明 SetWindowPos(HWND_TOPMOST) 在独占全屏 DirectX/OpenGL 应用之上失效,以及 UIPI 阻挡 hotkey 的同源现象,避免后续维护者再次尝试用户空间 workaround。 - USAGE.md: 给最终用户加 FAQ —— Minecraft 等全屏游戏下应切换到 borderless windowed fullscreen,对齐管理员权限,预先打开游戏聊天框。 此次仅文档与注释改动,不修改运行时行为。修复独占全屏 overlay 需要 DirectX overlay 注入(Discord / MSI Afterburner 路线),工程量与风险都不在 surgical 修复范围。
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
User description
关联 issue #457。
摘要
记录 Windows 端独占全屏游戏(典型例:Minecraft)下 OpenLess 行为失效的操作系统级根因与用户侧 workaround:
coordinator.rs):在show_capsule_window_no_activateWindows 路径上方加注释块,说明SetWindowPos(HWND_TOPMOST)对独占全屏 DirectX/OpenGL 应用无效(绕过桌面合成器),以及 UIPI 阻挡 hotkey 的同源现象。给后续维护者留下「这条路走不通」的明确路标。USAGE.md):FAQ 加 1 条 —— 用户应把游戏切到 borderless windowed fullscreen,对齐管理员权限,预先打开聊天框。不修改运行时行为。 真正绕过独占全屏需要 DirectX overlay 注入(Discord / MSI Afterburner 路线),工程量 + 风险都超出 surgical 修复范围;本 PR 不动这一层。
根因分析
按可能性排序(详见 issue #457):
WS_EX_TOPMOST还是运行时SetWindowPos(HWND_TOPMOST))不会被绘制在独占全屏 DirectX/OpenGL 应用之上。借助 desktop 合成器叠加 = 必然不可见。WH_KEYBOARD_LL收不到高权限进程的按键。若游戏以管理员运行而 OpenLess 不是,hotkey 完全不触发。T打开聊天框。macOS 不存在独占全屏(所有"全屏"都是带 Spaces 的 borderless),故平台不可比。
改动
openless-all/app/src-tauri/src/coordinator.rsUSAGE.mdWhy draft
我(claude code session)的当前环境是 macOS,无法在 Windows 本机实测用户场景。本 PR 是 0 行为变更的纯文档改动,cargo check 通过(仅 pre-existing warnings),但仍标 draft 以便 reviewer 在 Windows 机器上:
测试计划
PR Type
Documentation
Description
Document Windows fullscreen overlay limits
Explain admin and hotkey restrictions
Add Minecraft workaround FAQ entry
File Walkthrough
coordinator.rs
Document capsule overlay OS limitationsopenless-all/app/src-tauri/src/coordinator.rs
show_capsule_window_no_activateSetWindowPos(HWND_TOPMOST)fails in exclusive fullscreenUSAGE.md
Add Windows fullscreen FAQ guidanceUSAGE.md
T