Skip to content

fix(osd): speed up checkmark updates during Super+P cycling - #1849

Open
52cyb wants to merge 1 commit into
linuxdeepin:masterfrom
52cyb:master
Open

52cyb wants to merge 1 commit into
linuxdeepin:masterfrom
52cyb:master

Conversation

@52cyb

@52cyb 52cyb commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor
  1. Dispatch repeat display-mode requests without the 100 ms delay when the OSD is visible and no earlier request is pending.
  2. Advance the checkmark directly on repeat presses without resyncing.
  3. Cancel pending hides on request receipt and OSD refresh to keep the window visible while delayed requests wait.

Log: Make the Super+P display-mode selection respond to repeat presses

Influence:

  1. Verify the first Super+P press shows the current mode.
  2. Verify each repeat advances the checkmark and only the final mode is applied after two seconds without another press.
  3. Press again just before the OSD hides and verify it stays visible.

fix(osd): 加快 Super+P 连按轮选显示模式时的勾选更新

  1. 显示模式 OSD 已打开且无较早请求等待时,立即分发连按事件。
  2. 连按时使用已有列表直接更新勾选,跳过同步读取。
  3. 收到请求和刷新 OSD 时取消待执行的隐藏动作,避免延迟分发期间闪烁。

Influence:

  1. 首按 Super+P,确认界面显示当前模式。
  2. 连按时确认勾选逐次前进,停手两秒后只应用最后选中的模式。
  3. 在 OSD 即将隐藏时再次按键,确认窗口继续显示。

Log: 改善 Super+P 连按时显示模式勾选的响应速度
PMS: BUG-383567

Summary by Sourcery

Make repeated display-mode selection updates respond immediately without prematurely applying intermediate modes.

Bug Fixes:

  • Improve display-mode OSD responsiveness during repeated Super+P presses and ensure the OSD remains visible while delayed requests are processed.

Enhancements:

  • Advance monitor-switching checkmarks immediately from the existing selection state while preserving delayed application of the final display mode.

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 52cyb

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

@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Add pending-dispatch tracking and a cancellable hide timer so eligible repeat requests dispatch immediately while queued requests retain their ordering and the OSD stays visible.

  • panels/notification/osd/osdpanel.cpp L71-89 (+4 small edits)
  • panels/notification/osd/osdpanel.h L1, L49-50

Handle matching repeat display-mode requests by advancing the existing selection without syncing again, while keeping the initial request's sync and action behavior.

  • panels/notification/osd/displaymode/package/main.qml L21-33

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/osd/displaymode/package/main.qml" line_range="25" />
<code_context>
-                }
-            } else if (osdType === "SwitchMonitors") {
-                if (Panel.lastOsdType() === osdType) {
-                    Applet.next()
-                }
-            }
</code_context>
<issue_to_address>
**Repeat presses use stale choices**

When the initial output fetch fails and recovers, or outputs or the current mode change after sync while the OSD remains visible, `Applet.next()` advances the cached plan without calling `Applet.sync()`, so an empty plan stays empty and changed outputs or modes leave stale choices; the checkmark stays unchanged or points to the wrong choice, and the delayed action targets an unavailable or unintended mode.

Call `Applet.sync()` before `Applet.next()` on repeat presses.

Also at `panels/notification/osd/displaymode/package/main.qml:24`, `panels/notification/osd/displaymode/package/main.qml:26`, `panels/notification/osd/osdpanel.cpp:80`.
</issue_to_address>

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

return false

if (osdType === "SwitchMonitors" && Panel.lastOsdType() === osdType) {
Applet.next()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Repeat presses use stale choices

When the initial output fetch fails and recovers, or outputs or the current mode change after sync while the OSD remains visible, Applet.next() advances the cached plan without calling Applet.sync(), so an empty plan stays empty and changed outputs or modes leave stale choices; the checkmark stays unchanged or points to the wrong choice, and the delayed action targets an unavailable or unintended mode.

Call Applet.sync() before Applet.next() on repeat presses.

Also at panels/notification/osd/displaymode/package/main.qml:24, panels/notification/osd/displaymode/package/main.qml:26, panels/notification/osd/osdpanel.cpp:80.

Prompt for AI agents
In `panels/notification/osd/displaymode/package/main.qml` at line 25:

**Repeat presses use stale choices**

When the initial output fetch fails and recovers, or outputs or the current mode change after sync while the OSD remains visible, `Applet.next()` advances the cached plan without calling `Applet.sync()`, so an empty plan stays empty and changed outputs or modes leave stale choices; the checkmark stays unchanged or points to the wrong choice, and the delayed action targets an unavailable or unintended mode.

Call `Applet.sync()` before `Applet.next()` on repeat presses.

Also at `panels/notification/osd/displaymode/package/main.qml:24`, `panels/notification/osd/displaymode/package/main.qml:26`, `panels/notification/osd/osdpanel.cpp:80`.

@deepin-ci-robot

deepin-ci-robot commented Nov 24, 2026 •

Copy link
Copy Markdown

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

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

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

1. Dispatch repeat display-mode requests without the 100 ms delay
   when the OSD is visible and no earlier request is pending.
2. Advance the checkmark directly on repeat presses without resyncing.
3. Cancel pending hides on request receipt and OSD refresh to keep the
   window visible while delayed requests wait.

Log: Make the Super+P display-mode selection respond to repeat presses

Influence:
1. Verify the first Super+P press shows the current mode.
2. Verify each repeat advances the checkmark and only the final mode
   is applied after two seconds without another press.
3. Press again just before the OSD hides and verify it stays visible.

fix(osd): 加快 Super+P 连按轮选显示模式时的勾选更新

1. 显示模式 OSD 已打开且无较早请求等待时,立即分发连按事件。
2. 连按时使用已有列表直接更新勾选,跳过同步读取。
3. 收到请求和刷新 OSD 时取消待执行的隐藏动作,避免延迟分发期间闪烁。

Influence:
1. 首按 Super+P,确认界面显示当前模式。
2. 连按时确认勾选逐次前进,停手两秒后只应用最后选中的模式。
3. 在 OSD 即将隐藏时再次按键,确认窗口继续显示。

Log: 改善 Super+P 连按时显示模式勾选的响应速度
PMS: BUG-383567
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.

2 participants