Repository navigation
fix(dock): keep dock up while preview is shown - #1926
Merged
Merged
Conversation
1. Track whether the compositor-drawn dock preview is currently displayed. 2. Stop the hide timer and force the dock to Show when a preview appears. 3. Restart the hide timer once the preview context closes or a tooltip replaces it. 4. Exclude a shown preview from the hide decision alongside transient children. Log: Prevent the dock from hiding while a window preview is open. Influence: Dock previews no longer disappear before the pointer moves away. fix(dock): 预览显示时保持任务栏显示 1. 记录当前是否有合成器绘制的任务栏预览处于显示状态。 2. 预览出现时停止隐藏定时器并强制任务栏显示。 3. 预览上下文关闭或被提示替换后重新启动隐藏定时器。 4. 隐藏判定中将已显示的预览视作与临时子窗口同等条件。 Log: 修复窗口预览打开时任务栏被隐藏的问题。 PMS: TASK-399551 Influence: 任务栏预览不再在鼠标移开前提前消失。
Reviewer's GuideAPIExpose a DockHelper method so WaylandDockHelper can report whether a compositor-drawn preview is shown.
Uses of the APIUpdate preview state when the Wayland preview appears, closes, is reset, or is replaced by a tooltip.
ImplementationTrack preview visibility and prevent the dock hide decision from hiding the dock while a preview is shown.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
wjyrich
approved these changes
Dec 3, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MyLeeJiEun, wjyrich The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
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.
问题现象
任务栏窗口预览显示期间,鼠标离开或隐藏定时器到期会导致任务栏被隐藏,预览随之消失。
原因
预览由合成器绘制,不是 QWindow,DockHelper 的隐藏判定无法感知到它;
windowPreviewShown只调用了closeTooltip,没有阻止任务栏隐藏。修改
DockHelper::setPreviewShown(),预览显示时停止隐藏定时器并强制 Show,关闭时重新启动定时器。checkNeedHideOrNot()中把已显示的预览视作与临时子窗口同等条件。windowPreviewShown/closed信号上维护该状态;tooltip 替换预览时复位。关联提交
e018248