pub enum X11Event {
WindowCreated {
window_id: u32,
x: i32,
y: i32,
width: u32,
height: u32,
override_redirect: bool,
},
WindowDestroyed {
window_id: u32,
},
WindowMapped {
window_id: u32,
},
WindowUnmapped {
window_id: u32,
},
WindowConfigured {
window_id: u32,
x: i32,
y: i32,
width: u32,
height: u32,
},
TitleChanged {
window_id: u32,
title: String,
},
FocusRequest {
window_id: u32,
},
}Expand description
Simplified X11 event for the compatibility layer.
These are the events that XWayland would forward from X11 clients to the Wayland compositor.
Variants§
WindowCreated
Window creation (CreateNotify equivalent)
WindowDestroyed
Window destruction (DestroyNotify equivalent)
Fields
§
window_id: u32WindowMapped
Window mapped (visible)
Fields
§
window_id: u32WindowUnmapped
Window unmapped (hidden)
Fields
§
window_id: u32WindowConfigured
Window reconfigured (position/size change)
TitleChanged
Window title changed
FocusRequest
Focus request
Fields
§
window_id: u32Trait Implementations§
Auto Trait Implementations§
impl Freeze for X11Event
impl RefUnwindSafe for X11Event
impl Send for X11Event
impl Sync for X11Event
impl Unpin for X11Event
impl UnwindSafe for X11Event
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)