Skip to content

fix(dock): stabilize overflow icon reveal animation (2500u3) - #1890

Merged
wjyrich merged 1 commit into
linuxdeepin:develop/2500u3from
wjyrich:backport/1888-develop-2500u3
Nov 26, 2026
Merged

wjyrich merged 1 commit into
linuxdeepin:develop/2500u3from
wjyrich:backport/1888-develop-2500u3

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Backport #1888 to develop/2500u3.

Stabilize dock overflow icon reveal animations by preparing layout and icon geometry before revealing returning applications, preventing flickering and incorrect positioning.

将 #1888 移植到 develop/2500u3,修复应用从任务栏溢出区返回时图标闪烁和位置错误的问题。

PMS: BUG-384521

Source commit: 60ca1a7

Validation: cherry-pick applied without conflicts; patch matches the source commit; git diff --check passed. No build or runtime tests run.

Summary by Sourcery

Stabilize dock overflow icon reveal animations by laying out returning applications and synchronizing their icon positions before display.

Bug Fixes:

  • Prevent flickering and incorrect positioning when applications return from the dock overflow area by preparing their layout and icon geometry before revealing them.

Enhancements:

  • Consolidate overflow visibility and reveal-state handling to make dock icon transitions more stable.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

UI

Add a helper to refresh icon geometry and prepare returning delegates before revealing them, preventing overflow-return flicker and misplaced icons.

  • panels/dock/taskmanager/package/AppItem.qml L99-103
  • panels/dock/taskmanager/package/TaskManager.qml L238-255, L273

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

1. Add syncIconPosition helper in AppItem to stop the timer and refresh
icon geometry.
2. Replace overflow opacity/scale behaviors with explicit state-driven
updates.
3. Prepare layout and icon position before revealing icons returning
from overflow.
4. Reset position animation flag when overflow visibility changes.

Log: Fix flickering and misplaced icons when apps return from dock
overflow.
Influence: Overflow icon animations are smoother and correctly
positioned.

fix(dock): 稳定溢出图标显示动画

1. 在 AppItem 中新增 syncIconPosition,停止定时器并刷新图标位置。
2. 用状态驱动的显式更新替换溢出透明度与缩放动画。
3. 图标从溢出区返回前先完成布局和位置准备再显示。
4. 溢出可见性变化时重置位置动画标志。

Log: 修复应用从任务栏溢出区返回时图标闪烁和位置错误的问题。
Influence: 溢出图标动画更流畅且位置正确。
PMS: BUG-384521
(cherry picked from commit 60ca1a7)
@wjyrich
wjyrich force-pushed the backport/1888-develop-2500u3 branch from bf6d93f to 3ddbb69 Compare November 26, 2026 12:06

@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

deepin-ci-robot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

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

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

@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 merged commit 99a4ee4 into linuxdeepin:develop/2500u3 Nov 26, 2026
12 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