From 6bd0d71ebc142b94099a3e054c902a2529e60aa4 Mon Sep 17 00:00:00 2001 From: Christian Meissl Date: Mon, 21 Jun 2021 11:26:50 +0200 Subject: [PATCH] do not remove the surface focus during ungrap fixes #163 --- src/wayland/seat/pointer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/seat/pointer.rs b/src/wayland/seat/pointer.rs index 819cdb8..17e3f1e 100644 --- a/src/wayland/seat/pointer.rs +++ b/src/wayland/seat/pointer.rs @@ -333,7 +333,7 @@ impl<'a> PointerInnerHandle<'a> { self.inner.grab = GrabStatus::None; // restore the focus let location = self.current_location(); - let focus = self.inner.pending_focus.take(); + let focus = self.inner.pending_focus.clone(); self.motion(location, focus, serial, time); }