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: _,