aboutsummaryrefslogtreecommitdiff
path: root/src/input.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-07 19:45:55 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-10 14:49:38 +0400
commitc6838b08e2f65285f1391cec93f918cadb804117 (patch)
tree2cd593a120a91b8e2b0759b252eda1f08700d5ea /src/input.rs
parentad3c3f8cefd38d2bf26b466d8e34eccde3bca443 (diff)
downloadniri-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.rs24
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();
});