Skip to content
Open
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
9 changes: 8 additions & 1 deletion electron/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,16 @@ function getHudOverlayBounds() {
recordingActive: hudOverlayRecordingActive,
webcamPreviewVisible: hudOverlayWebcamPreviewVisible,
});
// The fallback geometry is a fixed, solid block sized for platforms that
// cannot make the overlay click-through. Using it while recording on a
// platform that *can* pass clicks through leaves a large real window sitting
// over the screen: the OS window picker (Cmd+Shift+5) highlights and selects
// the HUD instead of the app behind it, and any moment the renderer holds the
// mouse the whole block swallows clicks. Passthrough support is a property
// of the platform, not of whether a recording is in progress.
return getHudOverlayWindowBounds(
workArea,
isHudOverlayMousePassthroughSupported() && !hudOverlayRecordingActive,
isHudOverlayMousePassthroughSupported(),
fallbackExpanded,
);
}
Expand Down