feat: subsurfaces
This commit is contained in:
parent
0f37c9922d
commit
93bc4bbd88
33 changed files with 1898 additions and 2651 deletions
|
|
@ -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),
|
||||
}
|
||||
|
|
|
|||
8
core/src/event/wayland/subsurface.rs
Normal file
8
core/src/event/wayland/subsurface.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/// popup events
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum SubsurfaceEvent {
|
||||
/// Destroyed
|
||||
Destroyed,
|
||||
/// repositioned,
|
||||
Created,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue