From 39f249fe5d0ecb6ca74db9b6d7d1415b6b4d71e5 Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Fri, 8 May 2026 22:35:47 -0400 Subject: [PATCH] feat: keep rust click-through cache synced with UI toggle Co-Authored-By: Claude Opus 4.7 (1M context) --- src/hooks/useLiveOverlayWiring.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/useLiveOverlayWiring.ts b/src/hooks/useLiveOverlayWiring.ts index f44791b..08bc641 100644 --- a/src/hooks/useLiveOverlayWiring.ts +++ b/src/hooks/useLiveOverlayWiring.ts @@ -4,6 +4,7 @@ import { applyAlwaysOnTop, applyClickThrough, applyOpacity, + syncClickThroughCache, } from "../lib/overlay"; /** 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; lastAppliedClickThrough.current = clickThrough; void applyClickThrough(clickThrough); + void syncClickThroughCache(clickThrough); }, [clickThrough, isOpen]); }