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