Skip to content

fix(dock): prevent flicker during dock startup - #1882

Merged
wjyrich merged 1 commit into
linuxdeepin:masterfrom
wjyrich:fix-bug-384425
Nov 26, 2026
Merged

wjyrich merged 1 commit into
linuxdeepin:masterfrom
wjyrich:fix-bug-384425

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor
  1. Defer making the dock visible until the initial size is ready
  2. Add an initialization flag to finish startup only once the layout is measured
  3. Force list view relayout when its item count changes
  4. Remove the implicit width animation that caused startup flicker

Log: Prevent dock flicker on startup by deferring visibility until layout is ready
Influence: Dock shows smoothly without startup flicker

fix(dock): 修复任务栏启动闪屏

  1. 延迟任务栏可见性设置,等初始尺寸就绪后再显示
  2. 增加初始化标记,确保布局测量完成后仅执行一次初始化
  3. 列表项数量变化时强制重新布局
  4. 移除导致启动闪烁的宽度动画

Log: 延迟任务栏显示直至布局就绪,避免启动闪屏
Influence: 任务栏启动平滑显示,无闪烁
PMS: BUG-384425

Summary by Sourcery

Defer dock presentation until initialization is complete to provide a smooth, flicker-free startup.

Bug Fixes:

  • Prevent dock startup flicker by deferring visibility until its initial layout size is ready.
  • Ensure dock hide/show state changes are ignored until startup initialization completes.

Enhancements:

  • Relayout the overflow list when its item count changes.
  • Remove implicit dock width animation during layout transitions.

1. Defer making the dock visible until the initial size is ready
2. Add an initialization flag to finish startup only once the layout
is measured
3. Force list view relayout when its item count changes
4. Remove the implicit width animation that caused startup flicker

Log: Prevent dock flicker on startup by deferring visibility until
layout is ready
Influence: Dock shows smoothly without startup flicker

fix(dock): 修复任务栏启动闪屏

1. 延迟任务栏可见性设置,等初始尺寸就绪后再显示
2. 增加初始化标记,确保布局测量完成后仅执行一次初始化
3. 列表项数量变化时强制重新布局
4. 移除导致启动闪烁的宽度动画

Log: 延迟任务栏显示直至布局就绪,避免启动闪屏
Influence: 任务栏启动平滑显示,无闪烁
PMS: BUG-384425
@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 4 hours and 40 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

UI

Defer dock visibility and startup handling until its initial layout is measured, while removing the width animation and forcing overflow-list relayout to prevent flicker.

  • panels/dock/OverflowContainer.qml L31
  • panels/dock/package/main.qml L139-152, L1183-1186 (+3 small edits)

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

deepin-ci-robot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

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

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

Comment thread panels/dock/OverflowContainer.qml Resolved
@wjyrich
wjyrich merged commit 1dba2ea into linuxdeepin:master 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