Skip to content

Commit

Permalink
Fix dockarea not a correct value error
Browse files Browse the repository at this point in the history
  • Loading branch information
lthms committed Feb 3, 2024
1 parent b1c7782 commit 41f70d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 8 (unreleased)

## `spatial`

- Fix `dockarea not a correct value` error.

# 7 (2024-01-21)

## `spatialmsg`
Expand Down
5 changes: 4 additions & 1 deletion lib/sway_ipc_types/node.ml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -29,6 +29,7 @@ let node_type_decoder =
("workspace", Workspace);
("con", Con);
("floating_con", Floating_con);
("dockarea", Dockarea);
]

type border = Normal | None | Pixel | Csd
Expand All @@ -44,6 +45,7 @@ type layout =
| Tabbed
| Output
| None
| Dockarea

let layout_decoder =
Ezjsonm_encoding.Decoding.string_enum
Expand All @@ -54,6 +56,7 @@ let layout_decoder =
("tabbed", Tabbed);
("output", Output);
("none", None);
("dockarea", Dockarea);
]

type mark = string
Expand Down

0 comments on commit 41f70d7

Please sign in to comment.