From b3caba99ab3f0a29a27c9ccbf925d1d8207e8145 Mon Sep 17 00:00:00 2001 From: Ferdinand Schober Date: Thu, 18 Jan 2024 22:22:27 +0100 Subject: [PATCH] fix misleading warning --- src/backend/producer/wayland.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/producer/wayland.rs b/src/backend/producer/wayland.rs index 7fa3c21f..4a60543a 100644 --- a/src/backend/producer/wayland.rs +++ b/src/backend/producer/wayland.rs @@ -719,8 +719,10 @@ impl Dispatch for State { * it is impossible to grab it again (since the pointer * lock, relative pointer,... objects are still in place) */ + if app.pointer_lock.is_some() { + log::warn!("compositor released mouse"); + } app.ungrab(); - log::warn!("compositor released mouse"); } wl_pointer::Event::Button { serial: _,