diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-07 19:45:55 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-08-10 14:49:38 +0400 |
| commit | c6838b08e2f65285f1391cec93f918cadb804117 (patch) | |
| tree | 2cd593a120a91b8e2b0759b252eda1f08700d5ea /src/input.rs | |
| parent | ad3c3f8cefd38d2bf26b466d8e34eccde3bca443 (diff) | |
| download | niri-c6838b08e2f65285f1391cec93f918cadb804117.tar.gz niri-c6838b08e2f65285f1391cec93f918cadb804117.tar.bz2 niri-c6838b08e2f65285f1391cec93f918cadb804117.zip | |
Add rustfmt.toml and reformat
Diffstat (limited to 'src/input.rs')
| -rw-r--r-- | src/input.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/input.rs b/src/input.rs index 0531c29b..9fd894b5 100644 --- a/src/input.rs +++ b/src/input.rs @@ -1,15 +1,11 @@ -use smithay::{ - backend::input::{ - AbsolutePositionEvent, Axis, AxisSource, ButtonState, Event, InputBackend, InputEvent, - KeyboardKeyEvent, PointerAxisEvent, PointerButtonEvent, - }, - input::{ - keyboard::FilterResult, - pointer::{AxisFrame, ButtonEvent, MotionEvent}, - }, - reexports::wayland_server::protocol::wl_surface::WlSurface, - utils::SERIAL_COUNTER, +use smithay::backend::input::{ + AbsolutePositionEvent, Axis, AxisSource, ButtonState, Event, InputBackend, InputEvent, + KeyboardKeyEvent, PointerAxisEvent, PointerButtonEvent, }; +use smithay::input::keyboard::FilterResult; +use smithay::input::pointer::{AxisFrame, ButtonEvent, MotionEvent}; +use smithay::reexports::wayland_server::protocol::wl_surface::WlSurface; +use smithay::utils::SERIAL_COUNTER; use crate::state::Smallvil; @@ -70,7 +66,11 @@ impl Smallvil { .map(|(w, l)| (w.clone(), l)) { self.space.raise_element(&window, true); - keyboard.set_focus(self, Some(window.toplevel().wl_surface().clone()), serial); + keyboard.set_focus( + self, + Some(window.toplevel().wl_surface().clone()), + serial, + ); self.space.elements().for_each(|window| { window.toplevel().send_pending_configure(); }); |
