Fix VRR JSON output in hyprctl monitors (#1562)

This commit is contained in:
eriedaberrie 2023-02-17 02:37:38 -08:00 committed by GitHub
parent dbfa6eea7b
commit be2e4d9dd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ std::string monitorsRequest(HyprCtl::eHyprCtlOutputFormat format) {
"transform": %i, "transform": %i,
"focused": %s, "focused": %s,
"dpmsStatus": %s, "dpmsStatus": %s,
"vrr: %s" "vrr": %s
},)#", },)#",
m->ID, escapeJSONStrings(m->szName).c_str(), escapeJSONStrings(m->output->description ? m->output->description : "").c_str(), m->ID, escapeJSONStrings(m->szName).c_str(), escapeJSONStrings(m->output->description ? m->output->description : "").c_str(),
(m->output->make ? m->output->make : ""), (m->output->model ? m->output->model : ""), (m->output->serial ? m->output->serial : ""), (int)m->vecPixelSize.x, (m->output->make ? m->output->make : ""), (m->output->model ? m->output->model : ""), (m->output->serial ? m->output->serial : ""), (int)m->vecPixelSize.x,