Merge pull request #6 from mox-mox/dev

Fix for W: Got a unknown "border" property: "pixel".
This commit is contained in:
Sergey Naumov
2016-06-12 17:28:16 +03:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ enum class BorderStyle : char {
UNKNOWN = '?', //< If got an unknown border style in reply
NONE = 'N',
NORMAL = 'n',
PIXEL = 'P',
ONE_PIXEL = '1',
};

View File

@@ -76,6 +76,8 @@ static std::shared_ptr<container_t> parse_container_from_json(const Json::Value
container->border = BorderStyle::NORMAL;
} else if (border == "none") {
container->border = BorderStyle::NONE;
} else if (border == "pixel") {
container->border = BorderStyle::PIXEL;
} else if (border == "1pixel") {
container->border = BorderStyle::ONE_PIXEL;
} else {