Skip to content

fix(dock): update tooltip position before showing (u3) - #1880

Merged
wjyrich merged 1 commit into
linuxdeepin:develop/2500u3from
wjyrich:fix-bug-384401-2500u3
Nov 26, 2026
Merged

wjyrich merged 1 commit into
linuxdeepin:develop/2500u3from
wjyrich:fix-bug-384401-2500u3

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Backport of #1879 to develop/2500u3.

When the overflow popup moves or changes size, hovering the same application or application group can reuse stale tooltip coordinates because its local bounding rectangle is unchanged. Refresh DockPanelPositioner before opening the icon and drag tooltips so they use the current anchor position.

Validation: the application and application-group reproduction cases passed using the u3 QML sources; after the overflow popup moved left by 192 pixels, the tooltip followed its icon and retained the expected 10-pixel gap. git diff --check passed.

Log: Fix misplaced tooltips in the taskbar overflow popup
Influence: Application and application-group tooltips follow the overflow popup after it moves
PMS: BUG-384401

Summary by Sourcery

Bug Fixes:

  • Refresh tooltip positioning before opening application and application-group tooltips so they follow moved or resized overflow popups instead of using stale coordinates.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Sorry @wjyrich, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 6 hours and 38 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Uses of the API

Refresh the dock positioner after setting each tooltip’s bounding rectangle and before opening it, so icon and drag tooltips use the current anchor position.

  • panels/dock/taskmanager/package/AppItem.qml L694, L719

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

@deepin-ci-robot

Copy link
Copy Markdown

[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.

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

@wjyrich
wjyrich force-pushed the fix-bug-384401-2500u3 branch from 696285c to 020fc25 Compare November 26, 2026 01:52
@deepin-ci-robot

deepin-ci-robot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

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

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

1. Call DockPanelPositioner.updatePosition() before opening the icon
tooltip.
2. Call DockPanelPositioner.updatePosition() before opening the drag
tooltip.
3. Ensure tooltips display at the correct position after bounding is
set.

Log: Ensure dock tooltips are positioned correctly before display
Influence: Dock icon and drag tooltips now appear at the correct
position

fix(dock): 显示前更新提示框位置

1. 打开图标提示框前调用 DockPanelPositioner.updatePosition()。
2. 打开拖拽提示框前调用 DockPanelPositioner.updatePosition()。
3. 确保设置边界后提示框显示在正确位置。

Log: 确保 Dock 提示框在显示前正确定位
Influence: 图标与拖拽提示框现可显示在正确位置
PMS: BUG-384401
(cherry picked from commit f899b00)
@wjyrich
wjyrich force-pushed the fix-bug-384401-2500u3 branch from fa93fbe to 9019424 Compare November 26, 2026 05:33
@wjyrich
wjyrich merged commit 3737bb5 into linuxdeepin:develop/2500u3 Nov 26, 2026
11 of 13 checks passed
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