Repository navigation
Conversation
GTK/tao 在 visible:false 窗口尚未 mapped 时 GdkWindow 为 None, mount 时调用 setIgnoreCursorEvents 会 unwrap abort。改为首次 show 后再设点击穿透。 Co-authored-by: AppDuck <aocac@users.noreply.github.com>
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.
背景
合并 PR #3 后在本机 Linux(X11/TigerVNC + XFCE)跑
tauri dev时,进程在 overlay 窗口 mount 瞬间 abort:input/overlay配置为visible: false。GTK 在窗口尚未 mapped 时没有GdkWindow,setIgnoreCursorEvents(true)会把整个进程打崩,游戏模式无法做实机验收。改动
show()之后再设点击穿透visibleOnAllWorkspacesshow→setIgnoreCursorEvents客户端-only,不改服务端,不影响香港机部署。
验证
本机 Linux 桌面已用此修复跑通:登录
https://ys.rylo.cn,Alt+G 输入 overlay,消息 overlay,Mousepad 焦点还原。证据在 agent storemedia/deploy-verify/。未授权故仍为 draft,未合 main。