diff --git a/src/frontend/gui/termwindow.rs b/src/frontend/gui/termwindow.rs index d833448c3..8e7d4830d 100644 --- a/src/frontend/gui/termwindow.rs +++ b/src/frontend/gui/termwindow.rs @@ -222,8 +222,7 @@ impl WindowCallbacks for TermWindow { } WMEK::Press(_) => { if let Some(focused) = self.focused.as_ref() { - let now = Instant::now(); - if now.duration_since(*focused) <= Duration::from_millis(200) { + if focused.elapsed() <= Duration::from_millis(200) { log::trace!("discard mouse click because it focused the window"); return; }