chore: format for Rust 2024
This commit is contained in:
parent
0a8da05847
commit
1f7f0c70b7
99 changed files with 414 additions and 442 deletions
|
|
@ -5,7 +5,7 @@ use cosmic_protocols::atspi::v1::server::cosmic_atspi_manager_v1;
|
|||
use smithay::{
|
||||
backend::input::Keycode,
|
||||
reexports::wayland_server::{
|
||||
backend::GlobalId, Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New,
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, backend::GlobalId,
|
||||
},
|
||||
};
|
||||
use std::os::unix::{io::AsFd, net::UnixStream};
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@ use cosmic_protocols::corner_radius::v1::server::{
|
|||
cosmic_corner_radius_manager_v1, cosmic_corner_radius_toplevel_v1,
|
||||
};
|
||||
use smithay::utils::HookId;
|
||||
use smithay::wayland::compositor::Cacheable;
|
||||
use smithay::wayland::compositor::add_pre_commit_hook;
|
||||
use smithay::wayland::compositor::with_states;
|
||||
use smithay::wayland::compositor::Cacheable;
|
||||
use smithay::wayland::shell::xdg::SurfaceCachedState;
|
||||
use smithay::{
|
||||
reexports::{
|
||||
|
|
|
|||
|
|
@ -23,13 +23,13 @@ mod generated {
|
|||
|
||||
use smithay::{
|
||||
backend::allocator::{
|
||||
Fourcc, Modifier,
|
||||
dmabuf::{Dmabuf, DmabufFlags},
|
||||
format::FormatSet,
|
||||
Fourcc, Modifier,
|
||||
},
|
||||
reexports::wayland_server::{
|
||||
backend::GlobalId, protocol::wl_buffer::WlBuffer, Client, DataInit, Dispatch,
|
||||
DisplayHandle, GlobalDispatch, New, Resource,
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource,
|
||||
backend::GlobalId, protocol::wl_buffer::WlBuffer,
|
||||
},
|
||||
wayland::{
|
||||
buffer::BufferHandler,
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ use smithay::{
|
|||
zwlr_output_mode_v1::{self, ZwlrOutputModeV1},
|
||||
},
|
||||
wayland_server::{
|
||||
backend::ClientId, Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New,
|
||||
Resource,
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource,
|
||||
backend::ClientId,
|
||||
},
|
||||
},
|
||||
utils::{Point, Size},
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-only
|
||||
|
||||
use calloop::{
|
||||
timer::{TimeoutAction, Timer},
|
||||
LoopHandle,
|
||||
timer::{TimeoutAction, Timer},
|
||||
};
|
||||
use cosmic_comp_config::output::comp::AdaptiveSync;
|
||||
use cosmic_protocols::output_management::v1::server::{
|
||||
|
|
@ -23,8 +23,8 @@ use smithay::{
|
|||
zwlr_output_mode_v1::ZwlrOutputModeV1,
|
||||
},
|
||||
wayland_server::{
|
||||
backend::GlobalId, protocol::wl_output::WlOutput, Client, Dispatch, DisplayHandle,
|
||||
GlobalDispatch, Resource, Weak,
|
||||
Client, Dispatch, DisplayHandle, GlobalDispatch, Resource, Weak, backend::GlobalId,
|
||||
protocol::wl_output::WlOutput,
|
||||
},
|
||||
},
|
||||
utils::{Logical, Physical, Point, Size, Transform},
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ use smithay::{
|
|||
zwlr_output_power_v1::{self, ZwlrOutputPowerV1},
|
||||
},
|
||||
wayland_server::{
|
||||
backend::GlobalId, Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New,
|
||||
Resource,
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource,
|
||||
backend::GlobalId,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ use cosmic_protocols::{
|
|||
},
|
||||
};
|
||||
use smithay::{
|
||||
desktop::{layer_map_for_output, LayerSurface},
|
||||
desktop::{LayerSurface, layer_map_for_output},
|
||||
output::Output,
|
||||
reexports::{
|
||||
wayland_protocols::ext::foreign_toplevel_list::v1::server::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1,
|
||||
|
|
|
|||
|
|
@ -7,12 +7,12 @@ use smithay::{
|
|||
reexports::{
|
||||
wayland_protocols::ext::foreign_toplevel_list::v1::server::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1,
|
||||
wayland_server::{
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource, Weak,
|
||||
backend::{ClientId, GlobalId},
|
||||
protocol::{wl_output::WlOutput, wl_surface::WlSurface},
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource, Weak,
|
||||
},
|
||||
},
|
||||
utils::{user_data::UserDataMap, IsAlive, Logical, Rectangle},
|
||||
utils::{IsAlive, Logical, Rectangle, user_data::UserDataMap},
|
||||
wayland::foreign_toplevel_list::{
|
||||
ForeignToplevelHandle, ForeignToplevelListHandler, ForeignToplevelListState,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ use smithay::{
|
|||
input::{Seat, SeatHandler},
|
||||
output::Output,
|
||||
reexports::wayland_server::{
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource,
|
||||
backend::{ClientId, GlobalId},
|
||||
protocol::wl_surface::WlSurface,
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource,
|
||||
},
|
||||
utils::{Logical, Rectangle},
|
||||
};
|
||||
|
|
@ -17,7 +17,7 @@ use cosmic_protocols::toplevel_management::v1::server::zcosmic_toplevel_manager_
|
|||
};
|
||||
|
||||
use super::{
|
||||
toplevel_info::{window_from_handle, ToplevelInfoHandler, ToplevelState, Window},
|
||||
toplevel_info::{ToplevelInfoHandler, ToplevelState, Window, window_from_handle},
|
||||
workspace::WorkspaceHandle,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ use smithay::{
|
|||
ext_workspace_manager_v1::{self, ExtWorkspaceManagerV1},
|
||||
},
|
||||
wayland_server::{
|
||||
backend::ClientId, protocol::wl_output::WlOutput, Client, DataInit, Dispatch,
|
||||
DisplayHandle, GlobalDispatch, New, Resource, Weak,
|
||||
Client, DataInit, Dispatch, DisplayHandle, GlobalDispatch, New, Resource, Weak,
|
||||
backend::ClientId, protocol::wl_output::WlOutput,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ use smithay::{
|
|||
ext_workspace_manager_v1::ExtWorkspaceManagerV1,
|
||||
},
|
||||
wayland_server::{
|
||||
backend::{GlobalId, ObjectId},
|
||||
Client, Dispatch, DisplayHandle, GlobalDispatch, Resource,
|
||||
backend::{GlobalId, ObjectId},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue