From 7102d8ec06d9eaa471471a5145f63a92f99ef032 Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Thu, 25 Jan 2024 00:09:25 +0100 Subject: [PATCH] Fix `dockarea not a correct value` error --- CHANGES.md | 6 ++++++ lib/sway_ipc_types/node.ml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 90e1d45..798ce60 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +# 8 (unreleased) + +## `spatial` + +- Fix `dockarea not a correct value` error. + # 7 (2024-01-21) ## `spatialmsg` diff --git a/lib/sway_ipc_types/node.ml b/lib/sway_ipc_types/node.ml index f4c7807..3fabf13 100644 --- a/lib/sway_ipc_types/node.ml +++ b/lib/sway_ipc_types/node.ml @@ -19,7 +19,7 @@ let fullscreen_mode_decoder = | 2L -> Global_fullscreen | _ -> raise (Invalid_argument "fullscreen_mode_decoder") -type node_type = Root | Output | Workspace | Con | Floating_con +type node_type = Root | Output | Workspace | Con | Floating_con | Dockarea let node_type_decoder = Ezjsonm_encoding.Decoding.string_enum @@ -29,6 +29,7 @@ let node_type_decoder = ("workspace", Workspace); ("con", Con); ("floating_con", Floating_con); + ("dockarea", Dockarea); ] type border = Normal | None | Pixel | Csd