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