Skip to content

Commit c77c5af

Browse files
authored
Merge pull request #6 from mox-mox/dev
Fix for W: Got a unknown "border" property: "pixel".
2 parents c2e29dc + 99c7bd7 commit c77c5af

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/i3ipc++/ipc.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ enum class BorderStyle : char {
111111
UNKNOWN = '?', //< If got an unknown border style in reply
112112
NONE = 'N',
113113
NORMAL = 'n',
114+
PIXEL = 'P',
114115
ONE_PIXEL = '1',
115116
};
116117

src/ipc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ static std::shared_ptr<container_t> parse_container_from_json(const Json::Value
7676
container->border = BorderStyle::NORMAL;
7777
} else if (border == "none") {
7878
container->border = BorderStyle::NONE;
79+
} else if (border == "pixel") {
80+
container->border = BorderStyle::PIXEL;
7981
} else if (border == "1pixel") {
8082
container->border = BorderStyle::ONE_PIXEL;
8183
} else {

0 commit comments

Comments
 (0)