From fab0b7a05fe33a5f7b307ecfb721d8111c813d64 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 3 Feb 2020 07:33:16 +0300 Subject: [PATCH] seat: remove ClickGrab.pending_focus It was unused. --- src/wayland/seat/pointer.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wayland/seat/pointer.rs b/src/wayland/seat/pointer.rs index 5d6a2b4..f86dc3a 100644 --- a/src/wayland/seat/pointer.rs +++ b/src/wayland/seat/pointer.rs @@ -663,7 +663,6 @@ impl PointerGrab for DefaultGrab { button, location: handle.current_location(), }, - pending_focus: None, }, ); } @@ -682,7 +681,6 @@ impl PointerGrab for DefaultGrab { // the grab once all are released. struct ClickGrab { start_data: GrabStartData, - pending_focus: Option<(WlSurface, (f64, f64))>, } impl PointerGrab for ClickGrab { @@ -690,12 +688,10 @@ impl PointerGrab for ClickGrab { &mut self, handle: &mut PointerInnerHandle<'_>, location: (f64, f64), - focus: Option<(WlSurface, (f64, f64))>, + _focus: Option<(WlSurface, (f64, f64))>, serial: u32, time: u32, ) { - // buffer the future focus, but maintain the current one - self.pending_focus = focus; handle.motion(location, self.start_data.focus.clone(), serial, time); } fn button(