fn anchor_window_to_click(
app: &AppHandle,
window: &WebviewWindow,
click_x: i32,
click_y: i32,
)Expand description
Pick the right monitor for (click_x, click_y) and place the
tray-popover window’s top-left below the click. Logs and bails
out without setting a position when monitors can’t be queried —
the window will still show() at its last-known position so the
user doesn’t lose access to the recorder.