Repository navigation
fix(dock): keep dock up while preview is shown - #1925
MyLeeJiEun wants to merge 2 commits into
Conversation
1. Raise the shared menu window right after showing it on xcb, because the panel popup became override-redirect with X11BypassWindowManagerHint and the WM no longer orders the two windows. 2. Mapping a window does not restack it, so a menu opened after the tray popup could stay buried under it, which is reproducible on the first right-click after opening the tray. 3. Keep the explicit restack limited to the xcb branch so the Wayland path is unchanged. Log: Raise panel menus explicitly on X11 so they are never hidden behind the tray popup. Influence: Dock and tray context menus always show above the panel popup. fix(menu): 菜单窗口显示后显式置顶 1. 在 xcb 下显示共享菜单窗口后调用 raise():面板弹窗自加入 X11BypassWindowManagerHint 后同样是 override-redirect,窗口管理器不再对两者排序。 2. map 不会改变堆叠顺序,因此托盘弹窗之后打开的菜单会被压在下面,表现为展开托盘 后第一次右键必然层级错误。 3. 显式置顶仅在 xcb 分支执行,Wayland 行为保持不变。 Log: X11 下菜单显示后显式置顶,避免被托盘弹窗遮挡。 PMS: BUG-384041 Influence: 托盘与任务栏右键菜单始终显示在面板弹窗之上。
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: 任务栏预览不再在鼠标移开前提前消失。
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: MyLeeJiEun 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 |
Reviewer's GuideAPIExpose a DockHelper method for callers to update whether a preview is shown.
Uses of the APIWire Wayland preview and tooltip lifecycle signals to the preview-shown state.
ImplementationTrack preview visibility to prevent the dock from hiding while a preview is shown, and restart hiding when that state clears.
UIRaise the shared menu window after showing it on xcb so it appears above the panel popup.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
问题现象
任务栏窗口预览显示期间,鼠标离开或隐藏定时器到期会导致任务栏被隐藏,预览随之消失。
原因
预览由合成器绘制,不是 QWindow,DockHelper 的隐藏判定无法感知到它;
windowPreviewShown只调用了closeTooltip,没有阻止任务栏隐藏。修改
DockHelper::setPreviewShown(),预览显示时停止隐藏定时器并强制 Show,关闭时重新启动定时器。checkNeedHideOrNot()中把已显示的预览视作与临时子窗口同等条件。windowPreviewShown/closed信号上维护该状态;tooltip 替换预览时复位。关联需求
https://pms.uniontech.com/task-view-399551.html
Summary by Sourcery
Keep dock previews visible for their full display duration and ensure X11 panel popups are raised above the panel.
Bug Fixes: