seat: remove ClickGrab.pending_focus

It was unused.
This commit is contained in:
Ivan Molodetskikh 2020-02-03 07:33:16 +03:00
parent 32613f3cd6
commit fab0b7a05f
No known key found for this signature in database
GPG Key ID: 02CE38DA47E9D691
1 changed files with 1 additions and 5 deletions

View File

@ -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(