unsafe fn release_mouse(mut window_state: parking_lot::MutexGuard<'_, WindowState>) {
    window_state.mouse.capture_count = window_state.mouse.capture_count.saturating_sub(1);
    if window_state.mouse.capture_count == 0 {
        // ReleaseCapture() causes a WM_CAPTURECHANGED where we lock the window_state.
        drop(window_state);
        ReleaseCapture();
    }
}
/// Release mouse input, stopping windows on this thread from receiving mouse input when the cursor
/// is outside the window.
Release mouse input, stopping windows on this thread from receiving mouse input when the cursor
is outside the window.
Release mouse input stopping windows on this thread from receiving mouse input when the cursor is outside the window .
unsafe fn release_mouse(mut window_state: parking_lot::MutexGuard<'_, WindowState>) {
    window_state.mouse.capture_count = window_state.mouse.capture_count.saturating_sub(1);
    if window_state.mouse.capture_count == 0 {
        // ReleaseCapture() causes a WM_CAPTURECHANGED where we lock the window_state.
        drop(window_state);
        ReleaseCapture();
    }
}
unsafe fn release_mouse ( mut window_state : parking_lot :: MutexGuard < ' _ , WindowState > ) { window_state . mouse . capture_count = window_state . mouse . capture_count . saturating_sub ( 1 ) ; if window_state . mouse . capture_count == 0 { // ReleaseCapture() causes a WM_CAPTURECHANGED where we lock the window_state. drop ( window_state ) ; ReleaseCapture ( ) ; } }
Release mouse input, stopping windows on this thread from receiving mouse input when the cursor
is outside the window.
Release mouse input stopping windows on this thread from receiving mouse input when the cursor is outside the window .
window_state
parking_lot::MutexGuard<'_, WindowState>