Skip to content

Commit 6f93b87

Browse files
wash2Drakulix
authored andcommitted
cleanup use statements
1 parent 2d9d83d commit 6f93b87

File tree

3 files changed

+4
-24
lines changed

3 files changed

+4
-24
lines changed

src/shell/grabs/moving.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,11 @@ use crate::{
1414
CosmicMapped, CosmicSurface, Direction, ManagedLayer,
1515
},
1616
utils::prelude::*,
17-
wayland::protocols::{
18-
corner_radius::CornerRadiusData,
19-
toplevel_info::{toplevel_enter_output, toplevel_enter_workspace},
20-
},
21-
};
22-
use smithay::{
23-
reexports::wayland_server::{Resource, Weak},
24-
wayland::{compositor::with_states, seat::WaylandFocus},
17+
wayland::protocols::toplevel_info::{toplevel_enter_output, toplevel_enter_workspace},
2518
};
2619

2720
use calloop::LoopHandle;
2821
use cosmic::theme::CosmicTheme;
29-
use cosmic_protocols::corner_radius::v1::server::cosmic_corner_radius_toplevel_v1::CosmicCornerRadiusToplevelV1;
3022
use smithay::{
3123
backend::{
3224
input::ButtonState,

src/shell/layout/floating/mod.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
11
// SPDX-License-Identifier: GPL-3.0-only
22

3-
use crate::wayland::protocols::corner_radius::CornerRadiusData;
4-
use smithay::{
5-
reexports::wayland_server::{Resource, Weak},
6-
wayland::compositor::with_states,
7-
};
83
use std::{
94
collections::{HashMap, VecDeque},
10-
sync::{
11-
atomic::{AtomicBool, Ordering},
12-
Mutex,
13-
},
5+
sync::atomic::{AtomicBool, Ordering},
146
time::{Duration, Instant},
157
};
168

17-
use cosmic_protocols::corner_radius::v1::server::cosmic_corner_radius_toplevel_v1::CosmicCornerRadiusToplevelV1;
189
use cosmic_settings_config::shortcuts::action::ResizeDirection;
1910
use keyframe::{ease, functions::EaseInOutCubic};
2011
use smithay::{

src/shell/layout/tiling/mod.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ use crate::{
2929
wayland::{
3030
handlers::xdg_shell::popup::get_popup_toplevel,
3131
protocols::{
32-
corner_radius::CornerRadiusData,
3332
toplevel_info::{
3433
toplevel_enter_output, toplevel_enter_workspace, toplevel_leave_output,
3534
toplevel_leave_workspace,
@@ -38,9 +37,7 @@ use crate::{
3837
},
3938
},
4039
};
41-
use smithay::{reexports::wayland_server::Resource, wayland::compositor::with_states};
4240

43-
use cosmic_protocols::corner_radius::v1::server::cosmic_corner_radius_toplevel_v1::CosmicCornerRadiusToplevelV1;
4441
use cosmic_settings_config::shortcuts::action::{FocusDirection, ResizeDirection};
4542
use id_tree::{InsertBehavior, MoveBehavior, Node, NodeId, NodeIdError, RemoveBehavior, Tree};
4643
use keyframe::{
@@ -62,13 +59,13 @@ use smithay::{
6259
desktop::{layer_map_for_output, space::SpaceElement, PopupKind, WindowSurfaceType},
6360
input::Seat,
6461
output::Output,
65-
reexports::wayland_server::{Client, Weak as WsWeak},
62+
reexports::wayland_server::Client,
6663
utils::{IsAlive, Logical, Physical, Point, Rectangle, Scale, Size},
6764
wayland::{compositor::add_blocker, seat::WaylandFocus},
6865
};
6966
use std::{
7067
collections::{HashMap, VecDeque},
71-
sync::{Arc, Mutex, Weak},
68+
sync::{Arc, Weak},
7269
time::{Duration, Instant},
7370
};
7471
use tracing::trace;

0 commit comments

Comments
 (0)