anvil: Derive missing `fmt::Debug`
This commit is contained in:
parent
d7b23c3271
commit
d041e5cdf6
|
@ -20,6 +20,7 @@ use smithay::{
|
|||
|
||||
use crate::shell::SurfaceData;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Output {
|
||||
name: String,
|
||||
output: output::Output,
|
||||
|
@ -124,6 +125,7 @@ impl Drop for Output {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct OutputMap {
|
||||
display: Rc<RefCell<Display>>,
|
||||
outputs: Vec<Output>,
|
||||
|
|
|
@ -28,6 +28,7 @@ use smithay::xwayland::{XWayland, XWaylandEvent};
|
|||
|
||||
use crate::{output_map::OutputMap, shell::init_shell, window_map::WindowMap};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct AnvilState<BackendData> {
|
||||
pub backend_data: BackendData,
|
||||
pub socket_name: Option<String>,
|
||||
|
|
|
@ -24,7 +24,7 @@ use crate::xwayland::X11Surface;
|
|||
mod layer_map;
|
||||
pub use layer_map::{LayerMap, LayerSurface};
|
||||
|
||||
#[derive(Clone, PartialEq)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum Kind {
|
||||
Xdg(ToplevelSurface),
|
||||
Wl(ShellSurface),
|
||||
|
@ -68,7 +68,7 @@ impl Kind {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum PopupKind {
|
||||
Xdg(PopupSurface),
|
||||
}
|
||||
|
@ -125,6 +125,7 @@ impl PopupKind {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
struct Window {
|
||||
location: Point<i32, Logical>,
|
||||
/// A bounding box over this window and its children.
|
||||
|
@ -241,11 +242,12 @@ impl Window {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Popup {
|
||||
popup: PopupKind,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct WindowMap {
|
||||
windows: Vec<Window>,
|
||||
popups: Vec<Popup>,
|
||||
|
|
|
@ -11,6 +11,7 @@ use smithay::{
|
|||
|
||||
use crate::{output_map::Output, shell::SurfaceData};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct LayerSurface {
|
||||
pub surface: wlr_layer::LayerSurface,
|
||||
pub location: Point<i32, Logical>,
|
||||
|
@ -122,7 +123,7 @@ impl LayerSurface {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct LayerMap {
|
||||
surfaces: Vec<LayerSurface>,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue