anvil: Derive missing `fmt::Debug`

This commit is contained in:
i509VCB 2021-10-17 01:51:05 -05:00
parent d7b23c3271
commit d041e5cdf6
4 changed files with 10 additions and 4 deletions

View File

@ -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>,

View File

@ -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>,

View File

@ -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>,

View File

@ -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>,
}