Skip to content

fix(menu): raise menu window above panel popup - #1848

Merged
MyLeeJiEun merged 1 commit into
linuxdeepin:develop/2500u3from
MyLeeJiEun:fix-384041-u3
Nov 24, 2026
Merged

MyLeeJiEun merged 1 commit into
linuxdeepin:develop/2500u3from
MyLeeJiEun:fix-384041-u3

Conversation

@MyLeeJiEun

@MyLeeJiEun MyLeeJiEun commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
  1. Raise the shared menu window right after showing it on xcb, because the panel popup became override-redirect with X11BypassWindowManagerHint and the WM no longer orders the two windows.
  2. Mapping a window does not restack it, so a menu opened after the tray popup could stay buried under it, which is reproducible on the first right-click after opening the tray.
  3. Keep the explicit restack limited to the xcb branch so the Wayland path is unchanged.

Log: Raise panel menus explicitly on X11 so they are never hidden behind the tray popup.
Influence: Dock and tray context menus always show above the panel popup.

fix(menu): 菜单窗口显示后显式置顶

  1. 在 xcb 下显示共享菜单窗口后调用 raise():面板弹窗自加入 X11BypassWindowManagerHint 后同样是 override-redirect,窗口管理器不再对两者排序。
  2. map 不会改变堆叠顺序,因此托盘弹窗之后打开的菜单会被压在下面,表现为展开托盘 后第一次右键必然层级错误。
  3. 显式置顶仅在 xcb 分支执行,Wayland 行为保持不变。

Log: X11 下菜单显示后显式置顶,避免被托盘弹窗遮挡。
PMS: BUG-384041
Influence: 托盘与任务栏右键菜单始终显示在面板弹窗之上。

Summary by Sourcery

Bug Fixes:

  • Ensure dock and tray context menus appear above panel popups on X11 by explicitly raising the menu window after it is shown.

1. Raise the shared menu window right after showing it on xcb, because the panel
   popup became override-redirect with X11BypassWindowManagerHint and the WM no
   longer orders the two windows.
2. Mapping a window does not restack it, so a menu opened after the tray popup
   could stay buried under it, which is reproducible on the first right-click
   after opening the tray.
3. Keep the explicit restack limited to the xcb branch so the Wayland path is
   unchanged.

Log: Raise panel menus explicitly on X11 so they are never hidden behind the tray popup.
Influence: Dock and tray context menus always show above the panel popup.

fix(menu): 菜单窗口显示后显式置顶

1. 在 xcb 下显示共享菜单窗口后调用 raise():面板弹窗自加入
   X11BypassWindowManagerHint 后同样是 override-redirect,窗口管理器不再对两者排序。
2. map 不会改变堆叠顺序,因此托盘弹窗之后打开的菜单会被压在下面,表现为展开托盘
   后第一次右键必然层级错误。
3. 显式置顶仅在 xcb 分支执行,Wayland 行为保持不变。

Log: X11 下菜单显示后显式置顶,避免被托盘弹窗遮挡。
PMS: BUG-384041
Influence: 托盘与任务栏右键菜单始终显示在面板弹窗之上。
@MyLeeJiEun
MyLeeJiEun requested a review from wjyrich November 24, 2026 07:31
@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Reviewer's Guide

UI

Raise the shared menu window after showing it on xcb so it stays above the panel popup, while leaving Wayland behavior unchanged.

  • frame/qml/PanelMenu.qml L101-105

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

@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

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

@deepin-ci-robot

deepin-ci-robot commented Nov 24, 2026 •

Copy link
Copy Markdown

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

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

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

@MyLeeJiEun
MyLeeJiEun merged commit 92210f2 into linuxdeepin:develop/2500u3 Nov 24, 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