Repository navigation
Ignore vendor hotkey keyboard devices - #9129
Conversation
|
Reviewed at 652c0cb by Claude Opus 5.5. No second opinion: Since this was opened, #10670 changed the click to move every device holding the layout list, so the symptom in #8964 (a click leaves the real keyboard alone) no longer happens on a settled seat. What this pull request still fixes is the reading. I tested that on a worker running quattro, with uinput devices named
It also drops the two devices from Tests on the worker: #12350 (Apple SMC power/lid) and #6834 (T2 headset) edit the same regex line, so whichever lands second needs a rebase. Labelled |
|
|
Checked the pushed keyboard-label filtering on current quattro; the keyboard layout regression passes. |
|
Reviewed again at 7b45197, which adds The new commit is sound. I repeated the reproduction at this head on a worker. The seat had uinput Tests on the worker:
Codex Medium found no defect in the diff. Its agreement is not guaranteed independent, because it can read this review's working notes. Still labelled |
quattro added the keyboard widget's table-loading test at the end of keyboard-layout-test.sh, where this branch added its event assertions. Both are kept, the branch's first. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
This had stopped merging cleanly, so I merged quattro into the branch as a27a4d8. The only conflict was in I checked quattro's two newer commits to the keyboard widget (#15043 and #14433) for interaction with this change. They add no new caller of I then verified it again at a27a4d8 on a worker running the shell from this branch. The seat had uinput Codex Medium checked the merge resolution, the regex and the newer quattro commits and found no defects. It also got the same device selection when it replayed the scenario. That agrees with my conclusion, but its independence is not guaranteed. Nothing is left for the author. This waits on the maintainer. |
omacom#9129 landed the same eventKeyboardName change this branch makes and added vendor WMI hotkey and radio-control devices to UNTYPED_KEYBOARDS. Keep both: the regex now names apple-smc-power beside the ACPI buttons and keeps quattro's suffix match, and the tests keep both sets of assertions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
omacom#9129 landed on quattro with its own extension of UNTYPED_KEYBOARDS (vendor -wmi-hotkeys and -wireless-radio-control suffixes). Both patterns are combined so neither set of devices is dropped, and both sets of tests are kept. Co-Authored-By: Claude Opus 5.5 <[email protected]>
omacom#9129 added vendor -wmi-hotkeys and -wireless-radio-control devices to the bar's filter only, so indicator.py's copy, which says it is the same list, would still let an Acer or ASUS hotkey block drive the Super+I pick. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Ignore vendor hotkey keyboard devices * Ignore vendor hotkey layout events --------- Co-authored-by: Omarchybot <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> (cherry picked from commit 0ca79f2)
Keeps the keyboard-layout widget attached to a keyboard users can type on. Fixes #8964.
<<<< AI wording below >>>>
Problem
Hyprland reports vendor WMI hotkeys and wireless radio controls as keyboards. The widget may select one first, update its layout, and leave the real keyboard unchanged.
Fix
Exclude vendor WMI hotkeys and wireless radio controls from both the keyboard list and activelayout event names. Events from those devices cannot replace the last real keyboard used for widget selection.
Verification
bash test/shell.d/keyboard-layout-test.shpasses. Changed Bash files pass syntax checks andgit diff --checkpasses.