feat: keep rust click-through cache synced with UI toggle

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Michael Chihlas
2026-05-08 22:35:47 -04:00
parent 7f31a90e05
commit 39f249fe5d

View File

@@ -4,6 +4,7 @@ import {
applyAlwaysOnTop, applyAlwaysOnTop,
applyClickThrough, applyClickThrough,
applyOpacity, applyOpacity,
syncClickThroughCache,
} from "../lib/overlay"; } from "../lib/overlay";
/** Pushes Zustand changes to the overlay window in real time. No-op when overlay is closed. */ /** Pushes Zustand changes to the overlay window in real time. No-op when overlay is closed. */
@@ -30,5 +31,6 @@ export function useLiveOverlayWiring(): void {
if (lastAppliedClickThrough.current === clickThrough) return; if (lastAppliedClickThrough.current === clickThrough) return;
lastAppliedClickThrough.current = clickThrough; lastAppliedClickThrough.current = clickThrough;
void applyClickThrough(clickThrough); void applyClickThrough(clickThrough);
void syncClickThroughCache(clickThrough);
}, [clickThrough, isOpen]); }, [clickThrough, isOpen]);
} }