Skip to content

fix(dock): keep dock up while preview is shown - #1923

Merged
deepin-bot[bot] merged 1 commit into
linuxdeepin:develop/2500u3from
MyLeeJiEun:task-399551-u3
Dec 3, 2026
Merged

deepin-bot[bot] merged 1 commit into
linuxdeepin:develop/2500u3from
MyLeeJiEun:task-399551-u3

Conversation

@MyLeeJiEun

@MyLeeJiEun MyLeeJiEun commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor
  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: 任务栏预览不再在鼠标移开前提前消失。

Summary by Sourcery

Bug Fixes:

  • Keep the dock visible while a Wayland window preview is displayed, preventing it from hiding prematurely.

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: 任务栏预览不再在鼠标移开前提前消失。
@MyLeeJiEun
MyLeeJiEun requested a review from wjyrich December 3, 2026 06:31
@sourcery-ai

sourcery-ai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Reviewer's Guide

API

Expose preview-state control on DockHelper so its Wayland-specific subclass can report when a dock preview is shown or dismissed.

  • panels/dock/dockhelper.h L25

Uses of the API

Connect preview display, closure, reset, and tooltip replacement events to the dock's preview-state control.

  • panels/dock/waylanddockhelper.cpp L257-258, L265, L292

Implementation

Track whether a preview is shown, prevent hiding while it is active, and stop or restart the hide timer as preview state changes.

  • panels/dock/dockhelper.cpp L221, L273-286
  • panels/dock/dockhelper.h L59

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, MyLeeJiEun

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deepin-ci-robot

deepin-ci-robot commented Dec 3, 2026 •

Copy link
Copy Markdown

⚠️ OBS CI 构建警告日志 (Commit: 9a5e3bb1)

提示:以下为 OBS CI 构建中 Lintian 检测到的警告信息,默认折叠,点击展开查看详情。完整日志请参阅对应构建状态链接。

deepin_develop / aarch64 (Lintian 警告: 15 条)
[ 1046s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[ 1046s] N: 
[ 1046s] N:   The desktop entry specifies a Command that does not match any of the
[ 1046s] N:   executables shipped in the package.
[ 1046s] N:   
[ 1046s] N:   This condition is often caused by a typo, or the desktop file was not
[ 1046s] N:   updated after the installed path of the executable was modified.
[ 1046s] N:   
[ 1046s] N:   Packages should ship executables that are used as commands in desktop
[ 1046s] N:   files.
[ 1046s] N: 
[ 1046s] N:   Visibility: warning
[ 1046s] N:   Show-Always: no
[ 1046s] N:   Check: menu-format
[ 1046s] N: 
[ 1046s] N:
[ 1046s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/aarch64-linux-gnu/libds-notification-shared.so.6.2.2 [usr/lib/aarch64-linux-gnu/libds-notification-shared.so]
[ 1046s] N: 
[ 1046s] N:   Although this package is not a "-dev" package, it installs a
[ 1046s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[ 1046s] N:   library. When the link doesn't include the version number, it is used by
[ 1046s] N:   the linker when other programs are built against this shared library.
[ 1046s] N:   
[ 1046s] N:   Shared libraries are supposed to place such symbolic links in their
[ 1046s] N:   respective "-dev" packages, so it is a bug to include it with the main
[ 1046s] N:   library package.
[ 1046s] N:   
[ 1046s] N:   However, if this is a small package which includes the runtime and the
[ 1046s] N:   development libraries, this is not a bug. In the latter case, please
[ 1046s] N:   override this warning.
[ 1046s] N: 
[ 1046s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[ 1046s] N:   Manual for details.
[ 1046s] N: 
[ 1046s] N:   Visibility: warning
[ 1046s] N:   Show-Always: no
[ 1046s] N:   Check: libraries/shared/links
[ 1046s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[ 1046s] N: 
[ 1046s] N:
[ 1046s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[ 1046s] N: 
[ 1046s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[ 1046s] N:   a manual page
[ 1046s] N:   
[ 1046s] N:   Note that though the man program has the capability to check for several
[ 1046s] N:   program names in the NAMES section, each of these programs should have its
[ 1046s] N:   own manual page (a symbolic link to the appropriate manual page is
[ 1046s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[ 1046s] N:   support this.
[ 1046s] N:   
[ 1046s] N:   If the name of the manual page differs from the binary by case, man may be
[ 1046s] N:   able to find it anyway; however, it is still best practice to match the
[ 1046s] N:   exact capitalization of the executable in the manual page.
[ 1046s] N:   
[ 1046s] N:   If the manual pages are provided by another package on which this package
[ 1046s] N:   depends, Lintian may not be able to determine that manual pages are
[ 1046s] N:   available. In this case, after confirming that all binaries do have manual
[ 1046s] N:   pages after this package and its dependencies are installed, please add a
[ 1046s] N:   Lintian override.
[ 1046s] N: 
[ 1046s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[ 1046s] N:   for details.
[ 1046s] N: 
[ 1046s] N:   Visibility: warning
[ 1046s] N:   Show-Always: no
[ 1046s] N:   Check: documentation/manual
[ 1046s] N:   Renamed from: binary-without-manpage
[ 1046s] N: 
[ 1046s] N:
[ 1046s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[ 1046s] N: 
[ 1046s] N:   When you NMU a package, that fact should be mentioned on the first line in
[ 1046s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[ 1046s] N:   insensitive).
[ 1046s] N:   
[ 1046s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[ 1046s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[ 1046s] N:   identical to the maintainer or one of the uploaders. If this is a local
[ 1046s] N:   package (not intended for Debian), you can suppress this warning by
[ 1046s] N:   putting "local" in the version number or "local package" on the first line
[ 1046s] N:   of the changelog entry.
[ 1046s] N: 
[ 1046s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[ 1046s] N:   Developer's Reference for details.
[ 1046s] N: 
[ 1046s] N:   Visibility: warning
[ 1046s] N:   Show-Always: no
[ 1046s] N:   Check: nmu
[ 1046s] N:   Renamed from: changelog-should-mention-nmu
[ 1046s] N: 
[ 1046s] N:
[ 1046s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared6
[ 1046s] N: 
[ 1046s] N:   The package name of a library package should usually reflect the soname of
[ 1046s] N:   the included library. The package name can determined from the library
[ 1046s] N:   file name with the following code snippet:
[ 1046s] N:   
[ 1046s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[ 1046s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[ 1046s] N: 
[ 1046s] N:   Visibility: warning
[ 1046s] N:   Show-Always: no
[ 1046s] N:   Check: libraries/shared/soname
[ 1046s] N: 
[ 1046s] N:
[ 1046s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[ 1046s] N:
[ 1046s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[ 1046s] N:
[ 1046s] W: dde-shell source: source-nmu-has-incorrect-version-number 6.2.2+u002 [debian/changelog:1]
[ 1046s] N: 
[ 1046s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[ 1046s] N:   native package). This is to prevent stealing version numbers from the
[ 1046s] N:   maintainer.
[ 1046s] N:   
[ 1046s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[ 1046s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[ 1046s] N:   identical to the maintainer or one of the uploaders. If this is a local
[ 1046s] N:   package (not intended for Debian), you can suppress this warning by
[ 1046s] N:   putting "local" in the version number or "local package" on the first line
[ 1046s] N:   of the changelog entry.
[ 1046s] N: 
[ 1046s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[ 1046s] N:   Developer's Reference for details.
[ 1046s] N: 
[ 1046s] N:   Visibility: warning
[ 1046s] N:   Show-Always: no
[ 1046s] N:   Check: nmu
[ 1046s] N: 
[ 1046s] N:
[ 1046s] W: dde-shell: unknown-section DDE
[ 1046s] N: 
[ 1046s] N:   The "Section:" field in this package's control file is not one of the
[ 1046s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[ 1046s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[ 1046s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[ 1046s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[ 1046s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[ 1046s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[ 1046s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[ 1046s] N:   
[ 1046s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[ 1046s] N:   "non-free-firmware/" if the package is in the according archive area.
[ 1046s] N: 
[ 1046s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[ 1046s] N:   details.
[ 1046s] N: 
[ 1046s] N:   Visibility: warning
[ 1046s] N:   Show-Always: no
[ 1046s] N:   Check: fields/section
[ 1046s] N: 
[ 1046s] N:
[ 1046s] W: dde-shell-example: unknown-section DDE
[ 1046s] N:
[ 1046s] W: libdde-shell: unknown-section DDE
[ 1046s] N:
[ 1046s] W: libdde-shell-dev: unknown-section DDE
[ 1046s] N:
[ 1046s] W: libdde-shell-dock: unknown-section DDE
[ 1046s] N:
[ 1046s] W: libdde-shell-dock-dev: unknown-section DDE
[ 1046s] Warning: mkbaselibs missing in build root, skipping baselibs
deepin_develop / x86_64 (Lintian 警告: 15 条)
[  485s] W: dde-shell: desktop-command-not-in-package bin/false [usr/share/applications/org.deepin.dde-shell.desktop]
[  485s] N: 
[  485s] N:   The desktop entry specifies a Command that does not match any of the
[  485s] N:   executables shipped in the package.
[  485s] N:   
[  485s] N:   This condition is often caused by a typo, or the desktop file was not
[  485s] N:   updated after the installed path of the executable was modified.
[  485s] N:   
[  485s] N:   Packages should ship executables that are used as commands in desktop
[  485s] N:   files.
[  485s] N: 
[  485s] N:   Visibility: warning
[  485s] N:   Show-Always: no
[  485s] N:   Check: menu-format
[  485s] N: 
[  485s] N:
[  485s] W: dde-shell: link-to-shared-library-in-wrong-package usr/lib/x86_64-linux-gnu/libds-notification-shared.so.6.2.2 [usr/lib/x86_64-linux-gnu/libds-notification-shared.so]
[  485s] N: 
[  485s] N:   Although this package is not a "-dev" package, it installs a
[  485s] N:   "libsomething.so" symbolic link referencing the corresponding shared
[  485s] N:   library. When the link doesn't include the version number, it is used by
[  485s] N:   the linker when other programs are built against this shared library.
[  485s] N:   
[  485s] N:   Shared libraries are supposed to place such symbolic links in their
[  485s] N:   respective "-dev" packages, so it is a bug to include it with the main
[  485s] N:   library package.
[  485s] N:   
[  485s] N:   However, if this is a small package which includes the runtime and the
[  485s] N:   development libraries, this is not a bug. In the latter case, please
[  485s] N:   override this warning.
[  485s] N: 
[  485s] N:   Please refer to Development files (Section 8.4) in the Debian Policy
[  485s] N:   Manual for details.
[  485s] N: 
[  485s] N:   Visibility: warning
[  485s] N:   Show-Always: no
[  485s] N:   Check: libraries/shared/links
[  485s] N:   Renamed from: non-dev-pkg-with-shlib-symlink
[  485s] N: 
[  485s] N:
[  485s] W: dde-shell: no-manual-page [usr/bin/dde-shell]
[  485s] N: 
[  485s] N:   Each binary in /usr/bin, /usr/sbin, /bin, /sbin or /usr/games should have
[  485s] N:   a manual page
[  485s] N:   
[  485s] N:   Note that though the man program has the capability to check for several
[  485s] N:   program names in the NAMES section, each of these programs should have its
[  485s] N:   own manual page (a symbolic link to the appropriate manual page is
[  485s] N:   sufficient) because other manual page viewers such as xman or tkman don't
[  485s] N:   support this.
[  485s] N:   
[  485s] N:   If the name of the manual page differs from the binary by case, man may be
[  485s] N:   able to find it anyway; however, it is still best practice to match the
[  485s] N:   exact capitalization of the executable in the manual page.
[  485s] N:   
[  485s] N:   If the manual pages are provided by another package on which this package
[  485s] N:   depends, Lintian may not be able to determine that manual pages are
[  485s] N:   available. In this case, after confirming that all binaries do have manual
[  485s] N:   pages after this package and its dependencies are installed, please add a
[  485s] N:   Lintian override.
[  485s] N: 
[  485s] N:   Please refer to Manual pages (Section 12.1) in the Debian Policy Manual
[  485s] N:   for details.
[  485s] N: 
[  485s] N:   Visibility: warning
[  485s] N:   Show-Always: no
[  485s] N:   Check: documentation/manual
[  485s] N:   Renamed from: binary-without-manpage
[  485s] N: 
[  485s] N:
[  485s] W: dde-shell source: no-nmu-in-changelog [debian/changelog:1]
[  485s] N: 
[  485s] N:   When you NMU a package, that fact should be mentioned on the first line in
[  485s] N:   the changelog entry. Use the words "NMU" or "Non-maintainer upload" (case
[  485s] N:   insensitive).
[  485s] N:   
[  485s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  485s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  485s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  485s] N:   package (not intended for Debian), you can suppress this warning by
[  485s] N:   putting "local" in the version number or "local package" on the first line
[  485s] N:   of the changelog entry.
[  485s] N: 
[  485s] N:   Please refer to Using the DELAYED/ queue (Section 5.11.3) in the Debian
[  485s] N:   Developer's Reference for details.
[  485s] N: 
[  485s] N:   Visibility: warning
[  485s] N:   Show-Always: no
[  485s] N:   Check: nmu
[  485s] N:   Renamed from: changelog-should-mention-nmu
[  485s] N: 
[  485s] N:
[  485s] W: dde-shell: package-name-doesnt-match-sonames libds-notification-shared6
[  485s] N: 
[  485s] N:   The package name of a library package should usually reflect the soname of
[  485s] N:   the included library. The package name can determined from the library
[  485s] N:   file name with the following code snippet:
[  485s] N:   
[  485s] N:    $ objdump -p /path/to/libfoo-bar.so.1.2.3 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | \
[  485s] N:        sed -r -e's/([0-9])\.so\./\1-/; s/\.so(\.|$)//; y/_/-/; s/(.*)/\L&/'
[  485s] N: 
[  485s] N:   Visibility: warning
[  485s] N:   Show-Always: no
[  485s] N:   Check: libraries/shared/soname
[  485s] N: 
[  485s] N:
[  485s] W: libdde-shell: package-name-doesnt-match-sonames libdde-shell1
[  485s] N:
[  485s] W: libdde-shell-dock: package-name-doesnt-match-sonames libdde-shell-dock1
[  485s] N:
[  485s] W: dde-shell source: source-nmu-has-incorrect-version-number 6.2.2+u002 [debian/changelog:1]
[  485s] N: 
[  485s] N:   A source NMU should have a Debian revision of "-x.x" (or "+nmuX" for a
[  485s] N:   native package). This is to prevent stealing version numbers from the
[  485s] N:   maintainer.
[  485s] N:   
[  485s] N:   Maybe you didn't intend this upload to be a NMU, in that case, please
[  485s] N:   double-check that the most recent entry in the changelog is byte-for-byte
[  485s] N:   identical to the maintainer or one of the uploaders. If this is a local
[  485s] N:   package (not intended for Debian), you can suppress this warning by
[  485s] N:   putting "local" in the version number or "local package" on the first line
[  485s] N:   of the changelog entry.
[  485s] N: 
[  485s] N:   Please refer to NMUs and debian/changelog (Section 5.11.2) in the Debian
[  485s] N:   Developer's Reference for details.
[  485s] N: 
[  485s] N:   Visibility: warning
[  485s] N:   Show-Always: no
[  485s] N:   Check: nmu
[  485s] N: 
[  485s] N:
[  485s] W: dde-shell: unknown-section DDE
[  485s] N: 
[  485s] N:   The "Section:" field in this package's control file is not one of the
[  485s] N:   sections in use on the ftp archive. Valid sections are currently admin,
[  485s] N:   comm, cli-mono, database, debug, devel, doc, editors, electronics,
[  485s] N:   embedded, fonts, games, gnome, gnu-r, gnustep, graphics, hamradio,
[  485s] N:   haskell, httpd, interpreters, java, javascript, kde, libdevel, libs, lisp,
[  485s] N:   localization, kernel, mail, math, misc, net, news, ocaml, oldlibs,
[  485s] N:   otherosfs, perl, php, python, ruby, rust, science, shells, sound, tex,
[  485s] N:   text, utils, vcs, video, web, x11, xfce, zope.
[  485s] N:   
[  485s] N:   The section name should be preceded by either "contrib/", "non-free/" or
[  485s] N:   "non-free-firmware/" if the package is in the according archive area.
[  485s] N: 
[  485s] N:   Please refer to Sections (Section 2.4) in the Debian Policy Manual for
[  485s] N:   details.
[  485s] N: 
[  485s] N:   Visibility: warning
[  485s] N:   Show-Always: no
[  485s] N:   Check: fields/section
[  485s] N: 
[  485s] N:
[  485s] W: dde-shell-example: unknown-section DDE
[  485s] N:
[  485s] W: libdde-shell: unknown-section DDE
[  485s] N:
[  485s] W: libdde-shell-dev: unknown-section DDE
[  485s] N:
[  485s] W: libdde-shell-dock: unknown-section DDE
[  485s] N:
[  485s] W: libdde-shell-dock-dev: unknown-section DDE
[  485s] Warning: mkbaselibs missing in build root, skipping baselibs

@MyLeeJiEun

Copy link
Copy Markdown
Contributor Author

/forcemerge

@deepin-bot
deepin-bot Bot merged commit e018248 into linuxdeepin:develop/2500u3 Dec 3, 2026
5 of 6 checks passed
@deepin-bot

deepin-bot Bot commented Dec 3, 2026

Copy link
Copy Markdown

This pr force merged! (status: blocked, merge_method: rebase)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants