candidate_label_under_cursor_locked

Function candidate_label_under_cursor_locked 

Source
fn candidate_label_under_cursor_locked(
    ctx: &HookContext,
    browsers: &HashMap<String, Browser>,
    x: i32,
    y: i32,
) -> Option<String>
Expand description

Find the AgentMux window label whose top-level HWND contains the cursor position. Excludes the dragged window itself (landing on the dragged window’s strip would be a no-op merge). Takes the browsers lock guard from the caller so we don’t re-acquire on the WM_MOUSEMOVE hot path.