Skip to content

refactor(dock): simplify task overflow logic (2500u3) - #1887

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

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

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

将 #1886 移植到 develop/2500u3。

应用区域占满后,任务图标保持由任务栏尺寸决定的大小,多余应用直接进入溢出区域。移除按应用数量缩小图标的逻辑,以及进入溢出区域前必须达到最小图标尺寸的限制。

原始 PR:#1886

通过 cherry-pick -x 移植提交 8d3109abe9448aa22e9eea4bc2b76e4254c81e19,无冲突。git diff --check 通过;未额外运行构建或测试。

Log: 保持任务栏应用图标尺寸,空间不足时直接进入溢出区域
PMS: BUG-384519

Summary by Sourcery

Keep dock-sized task icons and move applications to overflow when available space is insufficient.

Bug Fixes:

  • Keep taskbar application icons at the size determined by the dock while routing excess applications directly to the overflow area.

Enhancements:

  • Simplify task overflow behavior by removing adaptive icon shrinking, minimum-size gating, and the associated size calculation logic.

@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 1 hour and 55 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

API

Remove the controller’s minimumReached property and setter from the interface, matching the new overflow behavior.

  • panels/dock/taskmanager/taskoverflowcontroller.h L40 (removed lines), L72 (removed lines), L158 (removed lines)

Uses of the API

Keep task icons at the dock-determined size, remove adaptive size solving, and enable overflow whenever the title layout cannot fit.

  • panels/dock/taskmanager/package/TaskManager.qml L43-515 (5 small edits)

Implementation

Remove the minimumReached setter and simplify overflow latching so it depends on available extent and full extent alone.

  • panels/dock/taskmanager/taskoverflowcontroller.cpp L97 (removed lines), L374

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

@wjyrich
wjyrich force-pushed the backport/1886-develop-2500u3 branch from 3a7bd9f to 97b71d5 Compare November 26, 2026 06:35
@deepin-ci-robot

deepin-ci-robot commented Nov 26, 2026 •

Copy link
Copy Markdown

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

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

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

1. Remove adaptive icon shrinking and keep dock-sized task icons
2. Enable overflow whenever the title layout cannot fit available space
3. Drop minimum size solving and the minimumReached property
4. Simplify overflow latching to depend only on available extent

Log: Simplify task overflow to fixed icon size with overflow fallback
Influence: Dock icons stay at dock size; excess tasks move to overflow

refactor(dock): 简化任务溢出逻辑

1. 移除图标自适应缩小,保持任务图标为停靠栏尺寸
2. 标题布局无法容纳可用空间时即可触发溢出
3. 移除最小尺寸求解及 minimumReached 属性
4. 简化溢出锁定逻辑,仅依据可用空间判断

Log: 简化任务溢出逻辑,图标固定尺寸并用溢出承接多余任务
Influence: 停靠栏图标保持原尺寸,多余任务移入溢出区
PMS: BUG-384519
(cherry picked from commit 8d3109a)
@wjyrich
wjyrich force-pushed the backport/1886-develop-2500u3 branch from 97b71d5 to 9f94296 Compare November 26, 2026 11:54
@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 fb74b08 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