Repository navigation
Conversation
KeyboardPanel and PopupCard delegate close() straight to the owner and only fall back to root.open = false when there is no owner. An owner close() that throws therefore leaves the overlay mapped with a full-screen input region: every click lands on the dead surface, and Esc, outside clicks, and omarchy-shell close all funnel into the same throwing path. Force root.open = false from the catch and log why. Fixes omacom#13382
|
For the maintainer's queue: four open PRs now make this same fix for #13382: this one, #13460 (also yours), #13648 and the older #11751. All of them wrap |
|
Closing this as a duplicate of #13460, which was opened 21 minutes earlier against Both pull requests fix #13382 in the same two files, Compared by reading both diffs against For the maintainer: #11751 and #13648 also fix #13382 and remain open as competing fixes, which is the maintainer's choice. One difference worth knowing: on a throw, #11751 hides the panel through If this is wrong, and this pull request differs from #13460 in a way that matters, it can be reopened. |
Summary
Ui/KeyboardPanel.qmlandUi/PopupCard.qmldelegateclose()straight to the panel owner and only setroot.open = falsewhen there is no owner. An ownerclose()that throws leaves the overlay mapped with its full-screen input region intact (#13382): every click on the desktop lands on the dead surface, and every dismissal path (Esc, outside-click,omarchy-shell <target> close,shell hide) funnels back into the same throwing call — only a shell restart recovers.Both now wrap the delegation in
try/catch: on a throw they log a warning naming the failure and forceroot.open = false, which unmaps the window and releases the input region. The happy path is byte-for-byte unchanged.Fixes #13382
Testing
id: root/property bool openpresent in both files,console.warn+ JStry/catchare standard QML).agents/skills/visual-verification.md: a dev-linked shell with a plugin whoseclose()throwsthrow new Error('x')— Esc/outside-click must now dismiss the panel and the log must show the warning.