diff --git a/openless-all/app/src-tauri/src/coordinator.rs b/openless-all/app/src-tauri/src/coordinator.rs index 12a32ee5..cca83683 100644 --- a/openless-all/app/src-tauri/src/coordinator.rs +++ b/openless-all/app/src-tauri/src/coordinator.rs @@ -2502,13 +2502,17 @@ fn maybe_position_capsule_bottom_center( monitor_height: monitor.size().height, scale_bits: monitor.scale_factor().to_bits(), }; - let mut last = inner.capsule_layout.lock(); - if last.as_ref() == Some(&next) { + { + let last = inner.capsule_layout.lock(); + if last.as_ref() == Some(&next) { + return; + } + } + if crate::position_capsule_bottom_center(window, translation_active).is_ok() { + let mut last = inner.capsule_layout.lock(); + *last = Some(next); return; } - *last = Some(next); - drop(last); - let _ = crate::position_capsule_bottom_center(window, translation_active); } // ─────────────────────────── audio bridge ───────────────────────────