Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions shell/Ui/KeyboardPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,19 @@ PanelWindow {
readonly property string barPos: bar ? bar.position : "top"

function close() {
if (owner && "close" in owner) owner.close()
else root.open = false
if (owner && "close" in owner) {
try {
owner.close()
} catch (e) {
// A throwing plugin close() must not strand the mapped full-screen
// overlay: it owns the input region, so every click dies there and
// only a shell restart recovers (omacom/omarchy#13382).
console.warn("omarchy: panel owner close() threw, closing the panel anyway:", e)
root.open = false
}
} else {
root.open = false
}
}

function beginFocusPrime() {
Expand Down
15 changes: 13 additions & 2 deletions shell/Ui/PopupCard.qml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,19 @@ PopupWindow {
}

function close() {
if (owner && "close" in owner) owner.close()
else root.open = false
if (owner && "close" in owner) {
try {
owner.close()
} catch (e) {
// Same contract as KeyboardPanel: a throwing plugin close() must not
// strand the mapped overlay and its input region
// (omacom/omarchy#13382).
console.warn("omarchy: popup owner close() threw, closing the popup anyway:", e)
root.open = false
}
} else {
root.open = false
}
}

default property alias contentItem: contentHolder.children
Expand Down