Repository navigation
修复Wayland环境下有概率启动后不显示窗口的问题 - #2925
Merged
Merged
Conversation
Wayland 下合成器不允许客户端控制窗口层级与位置: - setAlwaysOnTop 只会记录状态而无法真正置顶歌词窗口,改为调用 moveTop 请求提升 - getBounds() 返回的位置是无效值,避免其覆盖用户设置的位置
Owner
|
winMian也同样有这个问题,可以在这里添加 |
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.
问题
在 Electron 40+ 的 Wayland 环境下,
ready-to-show事件可能不会触发,导致主窗口和桌面歌词窗口创建后一直处于隐藏状态
修复
同时监听
ready-to-show和did-finish-load,使用先触发的事件显示窗口,并用
isWindowShown防止重复显示。did-finish-load只在 Linux Wayland 下作为兜底,避免影响其他平台。