From bb1e3f3abac2057cb778d99089ee80b6dff402ef Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 18 Apr 2025 20:37:52 +0200 Subject: [PATCH] Share InputEventQueuer::is_blocked implementation --- src/input.rs | 3 --- src/input_common.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/input.rs b/src/input.rs index ea6e92a2c..5a826f524 100644 --- a/src/input.rs +++ b/src/input.rs @@ -450,9 +450,6 @@ fn paste_commit(&mut self) { ))); } - fn is_blocked(&self) -> bool { - self.blocking_wait().is_some() - } fn blocking_wait(&self) -> MutexGuard> { self.data.blocking_wait() } diff --git a/src/input_common.rs b/src/input_common.rs index e51a1ca74..110612e30 100644 --- a/src/input_common.rs +++ b/src/input_common.rs @@ -1633,7 +1633,7 @@ fn blocking_wait(&self) -> MutexGuard> { NO_WAIT.lock().unwrap() } fn is_blocked(&self) -> bool { - false + self.blocking_wait().is_some() } fn on_mouse_left_click(&mut self, _position: ViewportPosition) {}