Bug 395559 - [Wayland] Accessibility notifications only work when a Xwayland app is focused
Summary: [Wayland] Accessibility notifications only work when a Xwayland app is focused
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_accessibility (show other bugs)
Version: 5.15.2
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Gunnar Schmidt
URL:
Keywords: accessibility, wayland
: 458700 464458 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-06-18 12:42 UTC by Michael D
Modified: 2024-07-17 02:43 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael D 2018-06-18 12:42:01 UTC
I have enabled the "A lock key has been activated" notification (sound and popup) that works in an X session but which doesn't work in a wayland session unless an xwayland window is focused. I suppose this extends to other notifications, though I haven't checked.
Comment 1 Patrick Silva 2019-02-28 18:40:54 UTC
Here neither sound and popup work no matter if I use X11 or Wayland.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Comment 2 Patrick Silva 2019-03-07 03:13:20 UTC
Forget my previous comment.
I installed Accessibility kcm, enabled "Use KDE's system notification mechanism whenever a modifier or lock key changes its state" in "Modifier keys" tab and now I can confirm this behavior.
When I turn on numlock or caps lock while an app running natively on Wayland is focused, plasma does not show/play the notification.
When I switch to a window running on Xwayland, plasma shows/plays the notification immediately.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Comment 3 Patrick Silva 2019-07-04 14:51:51 UTC
(In reply to Patrick Silva from comment #2)
> When I turn on numlock or caps lock while an app running natively on Wayland
> is focused, plasma does not show/play the notification.
> When I switch to a window running on Xwayland, plasma shows/plays the
> notification immediately.
> 
This behavior persists.

Operating System: Arch Linux 
KDE Plasma Version: 5.16.2
KDE Frameworks Version: 5.59.0
Qt Version: 5.13.0
Comment 4 Nicolas Fella 2024-05-13 14:10:24 UTC
*** Bug 458700 has been marked as a duplicate of this bug. ***
Comment 5 Nicolas Fella 2024-05-14 11:50:53 UTC
*** Bug 464458 has been marked as a duplicate of this bug. ***
Comment 6 Bug Janitor Service 2024-07-08 15:54:45 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/6068
Comment 7 Nicolas Fella 2024-07-16 12:42:02 UTC
Git commit 0419c9a3b1511063cc601d9915cba031aa223206 by Nicolas Fella.
Committed on 16/07/2024 at 12:27.
Pushed by nicolasfella into branch 'master'.

[plugins/stickykeys] Show notification when keys are locked

If the relevant setting is enabled

M  +4    -1    src/plugins/stickykeys/CMakeLists.txt
M  +36   -0    src/plugins/stickykeys/stickykeys.cpp
M  +1    -0    src/plugins/stickykeys/stickykeys.h

https://invent.kde.org/plasma/kwin/-/commit/0419c9a3b1511063cc601d9915cba031aa223206
Comment 8 Nicolas Fella 2024-07-16 12:42:10 UTC
Git commit de9eb16527c7ca96e631f6da665a3a28ebd5c329 by Nicolas Fella, on behalf of Nicolas Fella.
Committed on 16/07/2024 at 12:27.
Pushed by nicolasfella into branch 'master'.

Show notification when modifier keys are used

If the relevant accessibility setting is enabled

M  +4    -0    src/plugins/CMakeLists.txt
A  +15   -0    src/plugins/keynotification/CMakeLists.txt
A  +119  -0    src/plugins/keynotification/keynotification.cpp     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +34   -0    src/plugins/keynotification/keynotification.h     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +32   -0    src/plugins/keynotification/main.cpp     [License: GPL(3+eV) GPL(v3.0) GPL(v2.0)]
A  +5    -0    src/plugins/keynotification/metadata.json

https://invent.kde.org/plasma/kwin/-/commit/de9eb16527c7ca96e631f6da665a3a28ebd5c329