Skip to content

fix: keep notification center visible on screenshot grab - #1826

Open
18202781743 wants to merge 1 commit into
linuxdeepin:masterfrom
18202781743:master
Open

18202781743 wants to merge 1 commit into
linuxdeepin:masterfrom
18202781743:master

Conversation

@18202781743

@18202781743 18202781743 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor
  1. Change notification center window flags from Qt.Tool to
    Qt.Window | Qt.FramelessWindowHint
  2. Add documentation analyzing the missing notification center in
    screenshots triggered by Ctrl+Alt+A
  3. Document the reproduced focus timeline showing FocusOut with
    NotifyGrab at 31ms and UnmapNotify at 127ms
  4. Explain that qt5platform-plugins only installs focus hooks for
    Qt.Widget, Qt.Window and Qt.Dialog, missing Qt.Tool
  5. Note that qt5platform-plugins filters NotifyGrab FocusOut, while
    the Qt XCB default handler clears active window after ~100ms
  6. Align notification center with window-mode launcher behavior
  7. Verify with git diff --check; runtime regression pending
  8. PMS: BUG-383559

Log: 修复通知中心快捷键截图缺失

Influence:

  1. Verify long-press Ctrl+Alt+A captures the notification center in
    the screenshot preview
  2. Confirm click-outside still closes the notification center
  3. Check taskbar and Alt+Tab display of the notification center
  4. Verify window stacking order and z-order behavior
  5. Test multi-screen scenarios
  6. Test Wayland LayerShell behavior
  7. Confirm launcher and clipboard screenshot behavior unchanged
  8. Reproduce manually rather than via fast simulated key presses

fix: 修复截图抓取时通知中心消失问题

  1. 将通知中心窗口 flags 从 Qt.Tool 改为
    Qt.Window | Qt.FramelessWindowHint
  2. 新增文档分析 Ctrl+Alt+A 截图缺失通知中心的问题
  3. 记录复现的焦点时序:31ms 收到 NotifyGrab 的 FocusOut,
    127ms 产生 UnmapNotify
  4. 说明 qt5platform-plugins 仅为 Qt.Widget、Qt.Window、Qt.Dialog
    安装焦点钩子,遗漏 Qt.Tool
  5. 说明平台插件过滤 NotifyGrab 的 FocusOut,而 Qt XCB 默认处理
    在约 100ms 后清除活动窗口
  6. 使通知中心与窗口模式启动器行为一致
  7. 已通过 git diff --check;运行时回归尚未完成
  8. PMS: BUG-383559

Log: 修复通知中心快捷键截图缺失

Influence:

  1. 验证长按 Ctrl+Alt+A 时截图预览包含通知中心
  2. 确认点击外部仍可关闭通知中心
  3. 检查任务栏和 Alt+Tab 中通知中心的显示
  4. 验证窗口层级与叠放顺序
  5. 测试多屏场景
  6. 测试 Wayland LayerShell 行为
  7. 确认启动器和剪贴板截图行为未受影响
  8. 请手动复现,避免使用快速模拟按键

PMS: BUG-383559

Summary by Sourcery

Ensure the notification center remains available during screenshot capture by treating it as a standard frameless window instead of a tool window.

Bug Fixes:

  • Keep the notification center visible when screenshots are captured via the global shortcut.

Enhancements:

  • Align the notification center's window behavior with window-mode launcher behavior while retaining frameless presentation.

@18202781743
18202781743 requested review from BLumia and mhduiy November 18, 2026 10:13
@sourcery-ai

sourcery-ai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

UI

Change the notification center from a Qt.Tool window to a frameless Qt.Window so it remains visible during screenshot capture.

  • panels/notification/center/package/main.qml L93

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 found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="panels/notification/center/package/main.qml" line_range="93" />
<code_context>
     // visible: true
     visible: Panel.visible
-    flags: Qt.Tool
+    flags: Qt.Window | Qt.FramelessWindowHint

     property int contentPadding: 10
</code_context>
<issue_to_address>
**Notification center enters task switcher**

When the notification center is shown on a desktop whose window manager lists ordinary top-level windows in the taskbar or Alt+Tab, `Qt.Window` gives the notification center ordinary top-level window behavior instead of the `Qt.Tool` type, so window managers that list ordinary windows expose it in the taskbar and Alt+Tab while it is open. The panel then appears as a user-switchable application window.

Preserve the no-taskbar/no-task-switcher behavior explicitly while using a window type that receives the required focus hook.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@deepin-ci-robot

deepin-ci-robot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

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

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

Comment thread docs/notification-center-screenshot.md Resolved
1. Change notification center window flags from Qt.Tool to Qt.Window |
Qt.FramelessWindowHint
2. Align notification center behavior with the window-mode launcher so
it is not unmapped during Ctrl+Alt+A screenshot grabs
3. Avoid the Qt.Tool path that misses focus hooks in qt5platform-plugins
and falls back to the Qt XCB default handler clearing the active window
after ~100ms
4. PMS: BUG-383559

Influence:
1. Verify long-press Ctrl+Alt+A captures the notification center in the
screenshot preview
2. Confirm click-outside still closes the notification center
3. Check taskbar and Alt+Tab display of the notification center
4. Verify window stacking order and z-order behavior
5. Test multi-screen scenarios
6. Test Wayland LayerShell behavior
7. Confirm launcher and clipboard screenshot behavior unchanged
8. Reproduce manually rather than via fast simulated key presses

fix: 修复截图抓取时通知中心消失问题

1. 将通知中心窗口 flags 从 Qt.Tool 改为 Qt.Window |
Qt.FramelessWindowHint
2. 使通知中心行为与窗口模式启动器保持一致,避免在 Ctrl+Alt+A 截图时被取
消映射
3. 规避 Qt.Tool 在 qt5platform-plugins 中缺少焦点钩子、退回 Qt XCB 默认
处理并在约 100ms 后清除活动窗口的问题
4. PMS: BUG-383559

Influence:
1. 验证长按 Ctrl+Alt+A 时截图预览包含通知中心
2. 确认点击外部仍可关闭通知中心
3. 检查任务栏和 Alt+Tab 中通知中心的显示
4. 验证窗口层级与叠放顺序
5. 测试多屏场景
6. 测试 Wayland LayerShell 行为
7. 确认启动器和剪贴板截图行为未受影响
8. 请手动复现,避免使用快速模拟按键

Log: Fixed missing notification center in Ctrl+Alt+A screenshots
Log: 修复通知中心快捷键截图缺失
PMS: BUG-383559
@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, BLumia, mhduiy

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

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.

4 participants