pub enum Event {
Show 14 variants
WorkspacesChanged {
workspaces: Vec<Workspace>,
},
WorkspaceUrgencyChanged {
id: u64,
urgent: bool,
},
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>,
},
WindowUrgencyChanged {
id: u64,
urgent: bool,
},
WindowLayoutsChanged {
changes: Vec<(u64, WindowLayout)>,
},
KeyboardLayoutsChanged {
keyboard_layouts: KeyboardLayouts,
},
KeyboardLayoutSwitched {
idx: u8,
},
OverviewOpenedOrClosed {
is_open: bool,
},
ConfigLoaded {
failed: bool,
},
}
Expand description
A compositor event.
Variants§
WorkspacesChanged
The workspace configuration has changed.
Fields
WorkspaceUrgencyChanged
The workspace urgency changed.
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.
WindowUrgencyChanged
Window urgency changed.
WindowLayoutsChanged
The layout of one or more windows has changed.
Fields
changes: Vec<(u64, WindowLayout)>
Pairs consisting of a window id and new layout information for the window.
KeyboardLayoutsChanged
The configured keyboard layouts have changed.
Fields
keyboard_layouts: KeyboardLayouts
The new keyboard layout configuration.
KeyboardLayoutSwitched
The keyboard layout switched.
OverviewOpenedOrClosed
The overview was opened or closed.
ConfigLoaded
The configuration was reloaded.
You will always receive this event when connecting to the event stream, indicating the last config load attempt.