chore: format for Rust 2024
This commit is contained in:
parent
0a8da05847
commit
1f7f0c70b7
99 changed files with 414 additions and 442 deletions
29
src/state.rs
29
src/state.rs
|
|
@ -8,8 +8,8 @@ use crate::{
|
|||
x11::X11State,
|
||||
},
|
||||
config::{CompOutputConfig, Config, ScreenFilter},
|
||||
input::{gestures::GestureState, PointerFocusState},
|
||||
shell::{grabs::SeatMoveGrabState, CosmicSurface, SeatExt, Shell},
|
||||
input::{PointerFocusState, gestures::GestureState},
|
||||
shell::{CosmicSurface, SeatExt, Shell, grabs::SeatMoveGrabState},
|
||||
utils::prelude::OutputExt,
|
||||
wayland::{
|
||||
handlers::{data_device::get_dnd_icon, screencopy::SessionHolder},
|
||||
|
|
@ -34,41 +34,40 @@ use anyhow::Context;
|
|||
use calloop::RegistrationToken;
|
||||
use cosmic_comp_config::output::comp::{OutputConfig, OutputState};
|
||||
use i18n_embed::{
|
||||
fluent::{fluent_language_loader, FluentLanguageLoader},
|
||||
DesktopLanguageRequester,
|
||||
fluent::{FluentLanguageLoader, fluent_language_loader},
|
||||
};
|
||||
use rust_embed::RustEmbed;
|
||||
use smithay::{
|
||||
backend::{
|
||||
allocator::{dmabuf::Dmabuf, Fourcc},
|
||||
allocator::{Fourcc, dmabuf::Dmabuf},
|
||||
drm::DrmNode,
|
||||
renderer::{
|
||||
element::{
|
||||
default_primary_scanout_output_compare, utils::select_dmabuf_feedback,
|
||||
RenderElementState, RenderElementStates,
|
||||
},
|
||||
ImportDma,
|
||||
element::{
|
||||
RenderElementState, RenderElementStates, default_primary_scanout_output_compare,
|
||||
utils::select_dmabuf_feedback,
|
||||
},
|
||||
},
|
||||
},
|
||||
desktop::{
|
||||
layer_map_for_output,
|
||||
PopupManager, layer_map_for_output,
|
||||
utils::{
|
||||
send_dmabuf_feedback_surface_tree, send_frames_surface_tree,
|
||||
surface_primary_scanout_output, update_surface_primary_scanout_output,
|
||||
with_surfaces_surface_tree,
|
||||
},
|
||||
PopupManager,
|
||||
},
|
||||
input::{pointer::CursorImageStatus, SeatState},
|
||||
input::{SeatState, pointer::CursorImageStatus},
|
||||
output::{Output, Scale, WeakOutput},
|
||||
reexports::{
|
||||
calloop::{LoopHandle, LoopSignal},
|
||||
wayland_protocols::xdg::shell::server::xdg_toplevel::WmCapabilities,
|
||||
wayland_protocols_misc::server_decoration::server::org_kde_kwin_server_decoration_manager::Mode,
|
||||
wayland_server::{
|
||||
Client, DisplayHandle, Resource,
|
||||
backend::{ClientData, ClientId, DisconnectReason},
|
||||
protocol::{wl_shm, wl_surface::WlSurface},
|
||||
Client, DisplayHandle, Resource,
|
||||
},
|
||||
},
|
||||
utils::{Clock, Monotonic, Point},
|
||||
|
|
@ -77,7 +76,7 @@ use smithay::{
|
|||
compositor::{CompositorClientState, CompositorState, SurfaceData},
|
||||
cursor_shape::CursorShapeManagerState,
|
||||
dmabuf::{DmabufFeedback, DmabufGlobal, DmabufState},
|
||||
fractional_scale::{with_fractional_scale, FractionalScaleManagerState},
|
||||
fractional_scale::{FractionalScaleManagerState, with_fractional_scale},
|
||||
idle_inhibit::IdleInhibitManagerState,
|
||||
idle_notify::IdleNotifierState,
|
||||
input_method::InputMethodManagerState,
|
||||
|
|
@ -96,7 +95,7 @@ use smithay::{
|
|||
shell::{
|
||||
kde::decoration::KdeDecorationState,
|
||||
wlr_layer::WlrLayerShellState,
|
||||
xdg::{decoration::XdgDecorationState, XdgShellState},
|
||||
xdg::{XdgShellState, decoration::XdgDecorationState},
|
||||
},
|
||||
shm::ShmState,
|
||||
single_pixel_buffer::SinglePixelBufferState,
|
||||
|
|
@ -122,7 +121,7 @@ use std::{
|
|||
collections::HashSet,
|
||||
ffi::OsString,
|
||||
process::Child,
|
||||
sync::{atomic::AtomicBool, Arc, LazyLock, Once},
|
||||
sync::{Arc, LazyLock, Once, atomic::AtomicBool},
|
||||
time::{Duration, Instant},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue