Repository navigation
Let on-screen keyboards reach the menu - #9135
yashranaway wants to merge 6 commits into
Conversation
quattro moved the menu onto OverlayWindow, which keeps one surface mapped between opens. Hyprland focuses an OnDemand layer only when it first maps, so a plain OnDemand would leave every reopened menu without keyboard focus. Prime with Exclusive for 75ms on each show and settle on OnDemand, as KeyboardPanel already does, and keep ExclusionMode.Auto as an override of OverlayWindow's Ignore. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Reviewed by Claude Opus 5.5 and pushed one commit to this branch: 1b1b676, a merge of Why the merge needed more than taking both sides. Reproduction, on a worker built from the Omarchy ISO. wvkbd is not in the repositories, so a stand-in played the on-screen keyboard: a quickshell layer surface on the overlay layer, anchored along the bottom with a 200px exclusive zone, logging every press. The press came from a real uinput pointer via
Tests. On the worker, Second opinion: none. The configured reviewer, Codex Medium, did not run on this item because today's review allowance was used up. Only one model has reviewed this so far. For the maintainer. With It waits on a second-opinion review of 1b1b676, then on the maintainer. |
|
|
Re-reviewed at 4a44d2e by Claude Opus 5.5, with Codex Medium as a second opinion. Since the last review, the branch has gained the timer-lifecycle test in The on-screen keyboard fix still holds. On a worker built from the Omarchy ISO, a stand-in layer-shell keyboard was anchored along the bottom with a 200px exclusive zone, and a real uinput pointer tapped it with the menu open. On One regression, with two monitors. Codex raised it, and it reproduces on the worker. Open the menu on one output, wait for the 75ms prime to settle on Still for the maintainer: with This waits on @yashranaway for the two-monitor case, then on the maintainer. |
|
Cross-linking, since the two overlap on the menu: #13193 takes on the same exclusive-focus problem in It is opt-in ( Happy to fold anything from this PR into that one, or the other way round, if the maintainer prefers a single change. |
|
Re-checked at 4a44d2e by Claude Opus 5.5 against current The branch conflicts with #13193 is aimed at the same bug, and neither pull request is clearly the better fix.
Codex Medium reached the same conclusion: neither should win as it stands, and the choice is the maintainer's. It agreed with a view already written down in this session's working, so its agreement is not independent. It also suggested a third option: carry this branch forward with #13193's focus handling folded in. This waits on the maintainer to choose between fixing #9029 by default here, with the two-monitor case handled the way #13193 handles it, or an opt-in mode through #13193. |
|
Closing in favor of #13193. Its current head uses automatic cooperative focus when an on-screen keyboard reserves space and handles focus leaving on a second monitor. Current quattro maps the overlay again on each open, so this PR's 75 ms focus timer is obsolete. #13193 still needs its own review and live validation. |
Keeps the Omarchy menu usable with layer-shell on-screen keyboards. Fixes #9029.
<<<< AI wording below >>>>
Problem
Exclusive keyboard focus makes Hyprland route on-screen keyboard taps to the menu's full-screen scrim. The first tap closes the menu, and no virtual keystroke reaches search.
Fix
Prime exclusive focus when the menu opens, then allow on-screen keyboard input after the timer fires. Stop and reset the timer on close. A regression executes the actual QML handlers through open, timer tick, close, late tick and reopen.
Verification
bash test/shell.d/menu-test.shpasses. Changed Bash files pass syntax checks andgit diff --checkpasses. The QML lifecycle regression is automated; I could not repeat live on-screen keyboard verification here.