Struct i3ipc::event::WorkspaceEventInfo
source · pub struct WorkspaceEventInfo {
pub change: WorkspaceChange,
pub current: Option<Node>,
pub old: Option<Node>,
}
Expand description
Data for WorkspaceEvent
.
Fields§
§change: WorkspaceChange
The type of change.
current: Option<Node>
Will be Some
if the type of event affects the workspace.
old: Option<Node>
Will be Some
only when change == Focus
and there was a previous workspace.
Note that if the previous workspace was empty it will get destroyed when switching, but
will still appear here.