Bug 484655 - NumLock and CapsLock misbehave in Wayland
Summary: NumLock and CapsLock misbehave in Wayland
Status: RESOLVED DOWNSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.3
Platform: NixOS Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2024-03-28 11:26 UTC by Shinri
Modified: 2024-03-28 22:42 UTC (History)
1 user (show)

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


Attachments
Reproducing capslock misbehavior (1.79 MB, video/webm)
2024-03-28 11:26 UTC, Shinri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shinri 2024-03-28 11:26:42 UTC
Created attachment 167887 [details]
Reproducing capslock misbehavior

SUMMARY
Both NumLock and CapsLock misbehave in Wayland

STEPS TO REPRODUCE

1. Enable NumLock (Or CapsLock) in desktop or one general app
2. Switch to an app (like firefox) using Alt+Tab
3. Input numbers with numpads (or alphabets for Capslock) in the address tab

OBSERVED RESULT
The numpads (0-9 and dot) fails to give any inputs (nor the arrows) with NumLock light on. I have to turn the light off to use numpads in some cases. I also rolled back to plasma 5 to test. This bug does not appear in my plasma 5.

EXPECTED RESULT
The CapsLock or NumLock should enable the capital alphabets or numpads number key, respectively.

SOFTWARE/OS VERSIONS
Linux: 6.6.22
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION

- I made a screencast in the attachment, which produce the bug.
- I've tested numerous apps, including those built with Qt (Kate, Konsole), GTK (Reminna), and other apps (Kitty Terminal). I only finds kitty workable for both NumsLock and CapsLock keyboard modifiers. I also tested Kate and Konsole under GNOME mutter / Wester as well as Kwin but nothing works.
Comment 1 fanzhuyifan 2024-03-28 22:42:35 UTC
I can't reproduce with capslock or num lock on wayland, git master build, Qt 6.7, arch linux. The state of capslock/numlock is correctly persisted when alt-tabbing from konsole to firefox, or from firefox to konsole. Also cannot reproduce when switching between konsole & kate.

>   I also tested Kate and Konsole under GNOME mutter / Wester as well as Kwin but nothing works.

Given that this is reproducible on other wayland compositers (mutter+weston), and on non-kde apps (firefox), it is highly unlikely that this is a bug in KDE software.