forge
Explore
Log in

Don't you dare go Hollow

af6485cd8c85665b15ef8d2c812da17604ca4e32Ivan MolodetskikhParent: f32a25e
src/dbus/gnome_shell_screenshot.rsmodified+0 -1
@@ -1,6 +1,5 @@
1 use std::path::PathBuf;1 use std::path::PathBuf;
2 2
3-use smithay::reexports::calloop;
4 use zbus::dbus_interface;3 use zbus::dbus_interface;
5 use zbus::fdo::{self, RequestNameFlags};4 use zbus::fdo::{self, RequestNameFlags};
6 5
src/dbus/mod.rsmodified+0 -1
@@ -1,4 +1,3 @@
1-use smithay::reexports::calloop;
2 use zbus::blocking::Connection;1 use zbus::blocking::Connection;
3 use zbus::Interface;2 use zbus::Interface;
4 3
src/dbus/mutter_screen_cast.rsmodified+0 -1
@@ -5,7 +5,6 @@ use std::sync::{Arc, Mutex};
5 5
6 use serde::Deserialize;6 use serde::Deserialize;
7 use smithay::output::Output;7 use smithay::output::Output;
8-use smithay::reexports::calloop;
9 use zbus::fdo::RequestNameFlags;8 use zbus::fdo::RequestNameFlags;
10 use zbus::zvariant::{DeserializeDict, OwnedObjectPath, SerializeDict, Type, Value};9 use zbus::zvariant::{DeserializeDict, OwnedObjectPath, SerializeDict, Type, Value};
11 use zbus::{dbus_interface, fdo, InterfaceRef, ObjectServer, SignalContext};10 use zbus::{dbus_interface, fdo, InterfaceRef, ObjectServer, SignalContext};
src/handlers/mod.rsmodified+0 -1
@@ -14,7 +14,6 @@ use smithay::desktop::{PopupKind, PopupManager};
14 use smithay::input::pointer::{CursorIcon, CursorImageStatus, PointerHandle};14 use smithay::input::pointer::{CursorIcon, CursorImageStatus, PointerHandle};
15 use smithay::input::{keyboard, Seat, SeatHandler, SeatState};15 use smithay::input::{keyboard, Seat, SeatHandler, SeatState};
16 use smithay::output::Output;16 use smithay::output::Output;
17-use smithay::reexports::input;
18 use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel;17 use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel;
19 use smithay::reexports::wayland_server::protocol::wl_data_source::WlDataSource;18 use smithay::reexports::wayland_server::protocol::wl_data_source::WlDataSource;
20 use smithay::reexports::wayland_server::protocol::wl_output::WlOutput;19 use smithay::reexports::wayland_server::protocol::wl_output::WlOutput;
src/input.rsmodified+1 -2
@@ -17,7 +17,6 @@ use smithay::input::pointer::{
17 GesturePinchBeginEvent, GesturePinchEndEvent, GesturePinchUpdateEvent, GestureSwipeBeginEvent,17 GesturePinchBeginEvent, GesturePinchEndEvent, GesturePinchUpdateEvent, GestureSwipeBeginEvent,
18 GestureSwipeEndEvent, GestureSwipeUpdateEvent, MotionEvent, RelativeMotionEvent,18 GestureSwipeEndEvent, GestureSwipeUpdateEvent, MotionEvent, RelativeMotionEvent,
19 };19 };
20-use smithay::reexports::input;
21 use smithay::utils::{Logical, Point, SERIAL_COUNTER};20 use smithay::utils::{Logical, Point, SERIAL_COUNTER};
22 use smithay::wayland::pointer_constraints::{with_pointer_constraint, PointerConstraint};21 use smithay::wayland::pointer_constraints::{with_pointer_constraint, PointerConstraint};
23 use smithay::wayland::tablet_manager::{TabletDescriptor, TabletSeatTrait};22 use smithay::wayland::tablet_manager::{TabletDescriptor, TabletSeatTrait};
@@ -1639,7 +1638,7 @@ pub fn apply_libinput_settings(config: &niri_config::Input, device: &mut input::
1639 1638
1640 #[cfg(test)]1639 #[cfg(test)]
1641 mod tests {1640 mod tests {
1642- use niri_config::{Action, Bind, Binds, Key, Modifiers};1641+ use niri_config::{Bind, Key};
1643 1642
1644 use super::*;1643 use super::*;
1645 1644
src/layout/focus_ring.rsmodified+1 -1
@@ -1,7 +1,7 @@
1 use std::iter::zip;1 use std::iter::zip;
2 2
3 use arrayvec::ArrayVec;3 use arrayvec::ArrayVec;
4-use niri_config::{self, GradientRelativeTo};4+use niri_config::GradientRelativeTo;
5 use smithay::backend::renderer::element::solid::{SolidColorBuffer, SolidColorRenderElement};5 use smithay::backend::renderer::element::solid::{SolidColorBuffer, SolidColorRenderElement};
6 use smithay::backend::renderer::element::Kind;6 use smithay::backend::renderer::element::Kind;
7 use smithay::utils::{Logical, Point, Rectangle, Scale, Size};7 use smithay::utils::{Logical, Point, Rectangle, Scale, Size};
src/layout/mod.rsmodified+2 -2
@@ -34,7 +34,7 @@ use std::mem;
34 use std::rc::Rc;34 use std::rc::Rc;
35 use std::time::Duration;35 use std::time::Duration;
36 36
37-use niri_config::{self, CenterFocusedColumn, Config, Struts};37+use niri_config::{CenterFocusedColumn, Config, Struts};
38 use niri_ipc::SizeChange;38 use niri_ipc::SizeChange;
39 use smithay::backend::renderer::element::solid::SolidColorRenderElement;39 use smithay::backend::renderer::element::solid::SolidColorRenderElement;
40 use smithay::backend::renderer::element::surface::WaylandSurfaceRenderElement;40 use smithay::backend::renderer::element::surface::WaylandSurfaceRenderElement;
@@ -885,7 +885,7 @@ impl<W: LayoutElement> Layout<W> {
885 }885 }
886 886
887 let col = &ws.columns[ws.active_column_idx];887 let col = &ws.columns[ws.active_column_idx];
888- Some((&col.tiles[col.active_tile_idx].window(), &mon.output))888+ Some((col.tiles[col.active_tile_idx].window(), &mon.output))
889 }889 }
890 890
891 pub fn windows_for_output(&self, output: &Output) -> impl Iterator<Item = &W> + '_ {891 pub fn windows_for_output(&self, output: &Output) -> impl Iterator<Item = &W> + '_ {
src/main.rsmodified+1 -1
@@ -21,7 +21,7 @@ use niri::utils::{cause_panic, version, IS_SYSTEMD_SERVICE};
21 use niri_config::Config;21 use niri_config::Config;
22 use portable_atomic::Ordering;22 use portable_atomic::Ordering;
23 use sd_notify::NotifyState;23 use sd_notify::NotifyState;
24-use smithay::reexports::calloop::{self, EventLoop};24+use smithay::reexports::calloop::EventLoop;
25 use smithay::reexports::wayland_server::Display;25 use smithay::reexports::wayland_server::Display;
26 use tracing_subscriber::EnvFilter;26 use tracing_subscriber::EnvFilter;
27 27
src/niri.rsmodified+1 -2
@@ -41,9 +41,8 @@ use smithay::output::{self, Output};
41 use smithay::reexports::calloop::generic::Generic;41 use smithay::reexports::calloop::generic::Generic;
42 use smithay::reexports::calloop::timer::{TimeoutAction, Timer};42 use smithay::reexports::calloop::timer::{TimeoutAction, Timer};
43 use smithay::reexports::calloop::{43 use smithay::reexports::calloop::{
44- self, Idle, Interest, LoopHandle, LoopSignal, Mode, PostAction, RegistrationToken,44+ Idle, Interest, LoopHandle, LoopSignal, Mode, PostAction, RegistrationToken,
45 };45 };
46-use smithay::reexports::input;
47 use smithay::reexports::wayland_protocols::ext::session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1;46 use smithay::reexports::wayland_protocols::ext::session_lock::v1::server::ext_session_lock_v1::ExtSessionLockV1;
48 use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel::WmCapabilities;47 use smithay::reexports::wayland_protocols::xdg::shell::server::xdg_toplevel::WmCapabilities;
49 use smithay::reexports::wayland_protocols_misc::server_decoration as _server_decoration;48 use smithay::reexports::wayland_protocols_misc::server_decoration as _server_decoration;
src/pw_utils.rsmodified+1 -1
@@ -29,7 +29,7 @@ use smithay::backend::allocator::Fourcc;
29 use smithay::backend::drm::DrmDeviceFd;29 use smithay::backend::drm::DrmDeviceFd;
30 use smithay::output::Output;30 use smithay::output::Output;
31 use smithay::reexports::calloop::generic::Generic;31 use smithay::reexports::calloop::generic::Generic;
32-use smithay::reexports::calloop::{self, Interest, LoopHandle, Mode, PostAction};32+use smithay::reexports::calloop::{Interest, LoopHandle, Mode, PostAction};
33 use smithay::reexports::gbm::Modifier;33 use smithay::reexports::gbm::Modifier;
34 use smithay::utils::{Physical, Size};34 use smithay::utils::{Physical, Size};
35 use zbus::SignalContext;35 use zbus::SignalContext;