cleanup use statements
This commit is contained in:
parent
2d9d83d3bd
commit
6f93b8774d
3 changed files with 4 additions and 24 deletions
|
|
@ -14,19 +14,11 @@ use crate::{
|
||||||
CosmicMapped, CosmicSurface, Direction, ManagedLayer,
|
CosmicMapped, CosmicSurface, Direction, ManagedLayer,
|
||||||
},
|
},
|
||||||
utils::prelude::*,
|
utils::prelude::*,
|
||||||
wayland::protocols::{
|
wayland::protocols::toplevel_info::{toplevel_enter_output, toplevel_enter_workspace},
|
||||||
corner_radius::CornerRadiusData,
|
|
||||||
toplevel_info::{toplevel_enter_output, toplevel_enter_workspace},
|
|
||||||
},
|
|
||||||
};
|
|
||||||
use smithay::{
|
|
||||||
reexports::wayland_server::{Resource, Weak},
|
|
||||||
wayland::{compositor::with_states, seat::WaylandFocus},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use calloop::LoopHandle;
|
use calloop::LoopHandle;
|
||||||
use cosmic::theme::CosmicTheme;
|
use cosmic::theme::CosmicTheme;
|
||||||
use cosmic_protocols::corner_radius::v1::server::cosmic_corner_radius_toplevel_v1::CosmicCornerRadiusToplevelV1;
|
|
||||||
use smithay::{
|
use smithay::{
|
||||||
backend::{
|
backend::{
|
||||||
input::ButtonState,
|
input::ButtonState,
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,11 @@
|
||||||
// SPDX-License-Identifier: GPL-3.0-only
|
// SPDX-License-Identifier: GPL-3.0-only
|
||||||
|
|
||||||
use crate::wayland::protocols::corner_radius::CornerRadiusData;
|
|
||||||
use smithay::{
|
|
||||||
reexports::wayland_server::{Resource, Weak},
|
|
||||||
wayland::compositor::with_states,
|
|
||||||
};
|
|
||||||
use std::{
|
use std::{
|
||||||
collections::{HashMap, VecDeque},
|
collections::{HashMap, VecDeque},
|
||||||
sync::{
|
sync::atomic::{AtomicBool, Ordering},
|
||||||
atomic::{AtomicBool, Ordering},
|
|
||||||
Mutex,
|
|
||||||
},
|
|
||||||
time::{Duration, Instant},
|
time::{Duration, Instant},
|
||||||
};
|
};
|
||||||
|
|
||||||
use cosmic_protocols::corner_radius::v1::server::cosmic_corner_radius_toplevel_v1::CosmicCornerRadiusToplevelV1;
|
|
||||||
use cosmic_settings_config::shortcuts::action::ResizeDirection;
|
use cosmic_settings_config::shortcuts::action::ResizeDirection;
|
||||||
use keyframe::{ease, functions::EaseInOutCubic};
|
use keyframe::{ease, functions::EaseInOutCubic};
|
||||||
use smithay::{
|
use smithay::{
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ use crate::{
|
||||||
wayland::{
|
wayland::{
|
||||||
handlers::xdg_shell::popup::get_popup_toplevel,
|
handlers::xdg_shell::popup::get_popup_toplevel,
|
||||||
protocols::{
|
protocols::{
|
||||||
corner_radius::CornerRadiusData,
|
|
||||||
toplevel_info::{
|
toplevel_info::{
|
||||||
toplevel_enter_output, toplevel_enter_workspace, toplevel_leave_output,
|
toplevel_enter_output, toplevel_enter_workspace, toplevel_leave_output,
|
||||||
toplevel_leave_workspace,
|
toplevel_leave_workspace,
|
||||||
|
|
@ -38,9 +37,7 @@ use crate::{
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
use smithay::{reexports::wayland_server::Resource, wayland::compositor::with_states};
|
|
||||||
|
|
||||||
use cosmic_protocols::corner_radius::v1::server::cosmic_corner_radius_toplevel_v1::CosmicCornerRadiusToplevelV1;
|
|
||||||
use cosmic_settings_config::shortcuts::action::{FocusDirection, ResizeDirection};
|
use cosmic_settings_config::shortcuts::action::{FocusDirection, ResizeDirection};
|
||||||
use id_tree::{InsertBehavior, MoveBehavior, Node, NodeId, NodeIdError, RemoveBehavior, Tree};
|
use id_tree::{InsertBehavior, MoveBehavior, Node, NodeId, NodeIdError, RemoveBehavior, Tree};
|
||||||
use keyframe::{
|
use keyframe::{
|
||||||
|
|
@ -62,13 +59,13 @@ use smithay::{
|
||||||
desktop::{layer_map_for_output, space::SpaceElement, PopupKind, WindowSurfaceType},
|
desktop::{layer_map_for_output, space::SpaceElement, PopupKind, WindowSurfaceType},
|
||||||
input::Seat,
|
input::Seat,
|
||||||
output::Output,
|
output::Output,
|
||||||
reexports::wayland_server::{Client, Weak as WsWeak},
|
reexports::wayland_server::Client,
|
||||||
utils::{IsAlive, Logical, Physical, Point, Rectangle, Scale, Size},
|
utils::{IsAlive, Logical, Physical, Point, Rectangle, Scale, Size},
|
||||||
wayland::{compositor::add_blocker, seat::WaylandFocus},
|
wayland::{compositor::add_blocker, seat::WaylandFocus},
|
||||||
};
|
};
|
||||||
use std::{
|
use std::{
|
||||||
collections::{HashMap, VecDeque},
|
collections::{HashMap, VecDeque},
|
||||||
sync::{Arc, Mutex, Weak},
|
sync::{Arc, Weak},
|
||||||
time::{Duration, Instant},
|
time::{Duration, Instant},
|
||||||
};
|
};
|
||||||
use tracing::trace;
|
use tracing::trace;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue