File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ struct workspace_t {
5454struct output_t {
5555 std::string name; // /< Name of the output
5656 bool active; // /< Is the output currently active
57+ bool primary; // /< Is the output the primary output
5758 std::string current_workspace; // /< Name of current workspace
5859 rect_t rect; // /< Size of the output
5960};
Original file line number Diff line number Diff line change @@ -169,12 +169,14 @@ static std::shared_ptr<output_t> parse_output_from_json(const Json::Value& val
169169 return std::shared_ptr<output_t >();
170170 Json::Value name = value[" name" ];
171171 Json::Value active = value[" active" ];
172+ Json::Value primary = value[" primary" ];
172173 Json::Value current_workspace = value[" current_workspace" ];
173174 Json::Value rect = value[" rect" ];
174175
175176 std::shared_ptr<output_t > p (new output_t ());
176177 p->name = name.asString ();
177178 p->active = active.asBool ();
179+ p->primary = primary.asBool ();
178180 p->current_workspace = (current_workspace.isNull () ? std::string () : current_workspace.asString ());
179181 p->rect = parse_rect_from_json (rect);
180182 return p;
You can’t perform that action at this time.
0 commit comments