Skip to content

Commit

Permalink
add i3 specific floating state to Node
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayce Fayne authored and JayceFayne committed Feb 29, 2024
1 parent 7d04828 commit 514ede2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions types/src/reply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,16 @@ pub enum NodeLayout {
None,
}

#[non_exhaustive]
#[derive(Clone, Copy, Debug, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "snake_case")]
pub enum Floating {
AutoOn,
AutoOff,
UserOn,
UserOff,
}

#[non_exhaustive]
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
pub struct Node {
Expand Down Expand Up @@ -353,6 +363,8 @@ pub struct Node {
pub focused: bool,
/// Array of child node IDs in the current focus order.
pub focus: Vec<i64>,
/// Floating state of container, i3 specific property
pub floating: Option<Floating>,
/// The tiling children nodes for the node.
#[serde(default)]
pub nodes: Vec<Node>,
Expand Down

0 comments on commit 514ede2

Please sign in to comment.