pub enum Event {
WorkspacesChanged {
workspaces: Vec<Workspace>,
},
WorkspaceActivated {
id: u64,
focused: bool,
},
WorkspaceActiveWindowChanged {
workspace_id: u64,
active_window_id: Option<u64>,
},
WindowsChanged {
windows: Vec<Window>,
},
WindowOpenedOrChanged {
window: Window,
},
WindowClosed {
id: u64,
},
WindowFocusChanged {
id: Option<u64>,
},
KeyboardLayoutsChanged {
keyboard_layouts: KeyboardLayouts,
},
KeyboardLayoutSwitched {
idx: u8,
},
}
Expand description
A compositor event.
Variants§
WorkspacesChanged
The workspace configuration has changed.
Fields
WorkspaceActivated
A workspace was activated on an output.
This doesn’t always mean the workspace became focused, just that it’s now the active workspace on its output. All other workspaces on the same output become inactive.
Fields
WorkspaceActiveWindowChanged
An active window changed on a workspace.
Fields
WindowsChanged
The window configuration has changed.
Fields
WindowOpenedOrChanged
A new toplevel window was opened, or an existing toplevel window changed.
Fields
WindowClosed
A toplevel window was closed.
WindowFocusChanged
Window focus changed.
All other windows are no longer focused.
KeyboardLayoutsChanged
The configured keyboard layouts have changed.
Fields
§
keyboard_layouts: KeyboardLayouts
The new keyboard layout configuration.
KeyboardLayoutSwitched
The keyboard layout switched.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)