Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

refactor: rename `WindowState` tag `name` -> `type`

Lars Berger983477b40618
diff --git a/packages/wm/src/windows/window_state.rs b/packages/wm/src/windows/window_state.rs
index 52bc4ec6..065b041a 100644
--- a/packages/wm/src/windows/window_state.rs
+++ b/packages/wm/src/windows/window_state.rs
@@ -5,9 +5,9 @@ use crate::user_config::{
UserConfig,
};
-/// Represents the different possible states a window can have.
+/// Represents the possible states a window can have.
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
-#[serde(tag = "name", rename_all = "snake_case")]
+#[serde(tag = "type", rename_all = "snake_case")]
pub enum WindowState {
Floating(FloatingStateConfig),
Fullscreen(FullscreenStateConfig),