cleanup: imports
This commit is contained in:
parent
3674daf083
commit
537b34fe0b
|
@ -1,6 +1,6 @@
|
|||
use crate::{
|
||||
backend::renderer::{buffer_dimensions, Frame, ImportAll, Renderer, Texture},
|
||||
utils::{Buffer, Logical, Physical, Point, Rectangle, Size},
|
||||
utils::{Logical, Physical, Point, Rectangle, Size},
|
||||
wayland::compositor::{
|
||||
is_sync_subsurface, with_surface_tree_upward, BufferAssignment, Damage, SubsurfaceCachedState,
|
||||
SurfaceAttributes, TraversalAction,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{
|
||||
backend::renderer::{utils::draw_surface_tree, Frame, ImportAll, Renderer, Texture},
|
||||
desktop::{space::RenderElement, utils::*, PopupManager, Space},
|
||||
desktop::{utils::*, PopupManager, Space},
|
||||
utils::{user_data::UserDataMap, Logical, Point, Rectangle},
|
||||
wayland::{
|
||||
compositor::with_states,
|
||||
|
|
|
@ -42,7 +42,7 @@ where
|
|||
TypeId::of::<LayerSurface>()
|
||||
}
|
||||
|
||||
fn geometry(&self, space_id: usize) -> Rectangle<i32, Logical> {
|
||||
fn geometry(&self, _space_id: usize) -> Rectangle<i32, Logical> {
|
||||
let mut bbox = self.bbox_with_popups();
|
||||
let state = output_layer_state(self);
|
||||
bbox.loc += state.location;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use crate::{
|
||||
backend::renderer::{Frame, ImportAll, Renderer, Texture},
|
||||
desktop::{space::SpaceElement, LayerSurface, Window},
|
||||
desktop::space::SpaceElement,
|
||||
utils::{Logical, Point, Rectangle},
|
||||
wayland::output::Output,
|
||||
};
|
||||
|
@ -8,7 +8,7 @@ use indexmap::IndexMap;
|
|||
use wayland_server::protocol::wl_surface::WlSurface;
|
||||
|
||||
use std::{
|
||||
any::{Any, TypeId},
|
||||
any::TypeId,
|
||||
cell::{RefCell, RefMut},
|
||||
collections::{HashMap, VecDeque},
|
||||
};
|
||||
|
|
|
@ -129,7 +129,7 @@ impl Window {
|
|||
/// A bounding box over this window and its children.
|
||||
// TODO: Cache and document when to trigger updates. If possible let space do it
|
||||
pub fn bbox(&self) -> Rectangle<i32, Logical> {
|
||||
if let Some(surface) = self.0.toplevel.get_surface() {
|
||||
if self.0.toplevel.get_surface().is_some() {
|
||||
self.0.bbox.get()
|
||||
} else {
|
||||
Rectangle::from_loc_and_size((0, 0), (0, 0))
|
||||
|
@ -167,7 +167,7 @@ impl Window {
|
|||
})
|
||||
.unwrap_or(false),
|
||||
#[cfg(feature = "xwayland")]
|
||||
Kind::X11(ref t) => unimplemented!(),
|
||||
Kind::X11(ref _t) => unimplemented!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -176,7 +176,7 @@ impl Window {
|
|||
match self.0.toplevel {
|
||||
Kind::Xdg(ref t) => t.send_configure(),
|
||||
#[cfg(feature = "xwayland")]
|
||||
Kind::X11(ref t) => unimplemented!(),
|
||||
Kind::X11(ref _t) => unimplemented!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue