rustfmt fixes
This commit is contained in:
parent
e5f8c351c7
commit
cc5d55f535
|
@ -18,16 +18,16 @@ use smithay::{
|
|||
egl::{BufferAccessError, EGLImages, Format},
|
||||
graphics::{gl::GLGraphicsBackend, glium::GliumGraphicsBackend},
|
||||
},
|
||||
reexports::wayland_server::{
|
||||
protocol::{wl_buffer, wl_surface},
|
||||
Resource,
|
||||
},
|
||||
wayland::{
|
||||
compositor::{roles::Role, SubsurfaceRole, TraversalAction},
|
||||
data_device::DnDIconRole,
|
||||
seat::CursorImageRole,
|
||||
shm::with_buffer_contents as shm_buffer_contents,
|
||||
},
|
||||
reexports::wayland_server::{
|
||||
protocol::{wl_buffer, wl_surface},
|
||||
Resource,
|
||||
},
|
||||
};
|
||||
|
||||
use crate::shaders;
|
||||
|
|
|
@ -17,11 +17,11 @@ use smithay::{
|
|||
self, Event, InputBackend, InputHandler, KeyState, KeyboardKeyEvent, PointerAxisEvent,
|
||||
PointerButtonEvent, PointerMotionAbsoluteEvent, PointerMotionEvent,
|
||||
},
|
||||
reexports::wayland_server::protocol::wl_pointer,
|
||||
wayland::{
|
||||
seat::{keysyms as xkb, AxisFrame, KeyboardHandle, Keysym, ModifiersState, PointerHandle},
|
||||
SERIAL_COUNTER as SCOUNTER,
|
||||
},
|
||||
reexports::wayland_server::protocol::wl_pointer,
|
||||
};
|
||||
|
||||
use crate::shell::MyWindowMap;
|
||||
|
|
|
@ -7,6 +7,10 @@ use std::{
|
|||
use rand;
|
||||
|
||||
use smithay::{
|
||||
reexports::wayland_server::{
|
||||
protocol::{wl_buffer, wl_callback, wl_shell_surface, wl_surface},
|
||||
Display, Resource,
|
||||
},
|
||||
wayland::{
|
||||
compositor::{compositor_init, CompositorToken, SurfaceAttributes, SurfaceEvent},
|
||||
data_device::DnDIconRole,
|
||||
|
@ -21,10 +25,6 @@ use smithay::{
|
|||
},
|
||||
},
|
||||
},
|
||||
reexports::wayland_server::{
|
||||
protocol::{wl_buffer, wl_callback, wl_shell_surface, wl_surface},
|
||||
Display, Resource,
|
||||
},
|
||||
};
|
||||
|
||||
use crate::window_map::{Kind as SurfaceKind, WindowMap};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::borrow::Cow;
|
||||
|
||||
use smithay::{wayland::shm::BufferData, reexports::wayland_server::protocol::wl_shm::Format};
|
||||
use smithay::{reexports::wayland_server::protocol::wl_shm::Format, wayland::shm::BufferData};
|
||||
|
||||
use glium::texture::{ClientFormat, RawImage2d};
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
use smithay::{
|
||||
reexports::wayland_server::{protocol::wl_surface, Resource},
|
||||
utils::Rectangle,
|
||||
wayland::{
|
||||
compositor::{roles::Role, CompositorToken, SubsurfaceRole, SurfaceAttributes, TraversalAction},
|
||||
|
@ -7,7 +8,6 @@ use smithay::{
|
|||
xdg::{ToplevelSurface, XdgSurfaceRole},
|
||||
},
|
||||
},
|
||||
reexports::wayland_server::{protocol::wl_surface, Resource},
|
||||
};
|
||||
|
||||
pub enum Kind<U, R, SD, D> {
|
||||
|
|
|
@ -6,13 +6,13 @@ use std::{
|
|||
|
||||
use smithay::{
|
||||
backend::{egl::EGLGraphicsBackend, graphics::gl::GLGraphicsBackend, input::InputBackend, winit},
|
||||
reexports::wayland_server::{calloop::EventLoop, protocol::wl_output, Display},
|
||||
wayland::{
|
||||
data_device::{default_action_chooser, init_data_device, set_data_device_focus, DataDeviceEvent},
|
||||
output::{Mode, Output, PhysicalProperties},
|
||||
seat::{CursorImageStatus, Seat, XkbConfig},
|
||||
shm::init_shm_global,
|
||||
},
|
||||
reexports::wayland_server::{calloop::EventLoop, protocol::wl_output, Display},
|
||||
};
|
||||
|
||||
use slog::Logger;
|
||||
|
|
|
@ -90,13 +90,13 @@
|
|||
//! the subhandler you provided, or via methods on the [`ShellState`](::wayland::shell::xdg::ShellState)
|
||||
//! that you are given (in an `Arc<Mutex<_>>`) as return value of the `init` function.
|
||||
|
||||
use crate::utils::Rectangle;
|
||||
use crate::wayland::compositor::{roles::Role, CompositorToken};
|
||||
use std::{
|
||||
cell::RefCell,
|
||||
rc::Rc,
|
||||
sync::{Arc, Mutex},
|
||||
};
|
||||
use crate::utils::Rectangle;
|
||||
use crate::wayland::compositor::{roles::Role, CompositorToken};
|
||||
use wayland_protocols::{
|
||||
unstable::xdg_shell::v6::server::{zxdg_popup_v6, zxdg_shell_v6, zxdg_surface_v6, zxdg_toplevel_v6},
|
||||
xdg_shell::server::{xdg_popup, xdg_positioner, xdg_surface, xdg_toplevel, xdg_wm_base},
|
||||
|
|
Loading…
Reference in New Issue