Skip to content

fix(dock): keep residence when dragging out of overflow [cherry-pick] - #1900

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

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

Conversation

@wjyrich

@wjyrich wjyrich commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

回移 #1896 的单个提交 4255d2d1 到 develop/2500u3。从任务栏溢出区拖出应用或文件夹时保留驻留状态。

Cherry-pick 无冲突,已核对补丁与原 PR 一致。

PMS: BUG-384767

1. Stop undocking items dragged out of the overflow area, matching the
behavior of dragging out of the dock itself.
2. Remove the overflow drag-finished undo logic and simplify finishDrag
to only restore deferred layout sync.
3. Drop the Escape-key event filter and mouse-button heuristics used to
detect cancels, since dragging out no longer undocks.
4. Update the residence documentation to state that dragging out of the
overflow area preserves residence.

Log: Dragging an item out of the overflow area no longer undocks it.
Influence: Users keep pinned items when dragging them out of the
overflow.

fix(dock): 从溢出区域拖出时保持驻留

1. 停止从溢出区域拖出的项被取消驻留,与从任务栏拖出的行为保持一致。
2. 移除溢出区域拖拽结束时的取消驻留逻辑,finishDrag 仅恢复延迟的布局
同步。
3. 删除用于检测取消的 Escape 事件过滤器和鼠标按键判断,因为拖出不再取消
驻留。
4. 更新驻留文档,说明从溢出区域拖出会保持驻留。

Log: 从溢出区域拖出应用或文件夹不再取消驻留。
Influence: 用户从溢出区域拖出时仍保留已驻留项。
PMS: BUG-384767
(cherry picked from commit 4255d2d)
@sourcery-ai

sourcery-ai Bot commented Nov 30, 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 49 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@deepin-ci-robot

deepin-ci-robot commented Nov 30, 2026 •

Copy link
Copy Markdown

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

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

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