feat: subsurfaces

This commit is contained in:
Ashley Wulber 2025-03-14 11:16:25 -04:00 committed by Ashley Wulber
parent 0f37c9922d
commit 93bc4bbd88
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
33 changed files with 1898 additions and 2651 deletions

View file

@ -4,6 +4,7 @@ mod overlap_notify;
mod popup;
mod seat;
mod session_lock;
mod subsurface;
mod window;
use crate::{time::Instant, window::Id};
@ -17,6 +18,7 @@ pub use overlap_notify::*;
pub use popup::*;
pub use seat::*;
pub use session_lock::*;
pub use subsurface::*;
pub use window::*;
/// wayland events
@ -40,4 +42,6 @@ pub enum Event {
Frame(Instant, WlSurface, Id),
/// Request Resize
RequestResize,
/// Subsurface
Subsurface(SubsurfaceEvent),
}

View file

@ -0,0 +1,8 @@
/// popup events
#[derive(Debug, Clone, PartialEq)]
pub enum SubsurfaceEvent {
/// Destroyed
Destroyed,
/// repositioned,
Created,
}