Add global command bypass with Cthulhu+Z

This commit is contained in:
ak47 committed 2026-11-07 22:07:03 -05:00
1 parent d01965c00d
commit 4c95c9f278
26 files changed
+657 -18

No files matched your search

+6
View File
@@ -155,6 +155,9 @@ func processEventsWithAttributes(
if foreground != nil {
foregroundChanges = foreground.ForegroundChanges()
state.foregroundState = foreground.Foreground()
if focusGate != nil {
focusGate.bypass.observeForeground(state.foregroundState.Client)
}
}
titles := &windowTitleController{state: &state, live: live, gate: focusGate, speech: speech, logger: logger, foreground: foreground, inputSource: inputSource}
titles.source, _ = adapter.(windowTitleSource)
@@ -213,6 +216,9 @@ func processEventsWithAttributes(
}
syncForeground := func() {
state.syncForeground(foreground, logger, clearOwnedFocus)
if focusGate != nil && foreground != nil {
focusGate.bypass.observeForeground(state.foregroundState.Client)
}
if wineReview != nil {
wineReview.foregroundChanged()
}