Merge pull request #1076 from IAteYourCookies/expose-scroller-proportion

ipc: expose scroller_proportion in client JSON
This commit is contained in:
DreamMaoMao 2026-06-19 09:58:52 +08:00 committed by GitHub
commit 186720d023
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,6 +164,7 @@ static cJSON *build_client_json(Client *c) {
cJSON_AddNumberToObject(obj, "y", c->geom.y); cJSON_AddNumberToObject(obj, "y", c->geom.y);
cJSON_AddNumberToObject(obj, "width", c->geom.width); cJSON_AddNumberToObject(obj, "width", c->geom.width);
cJSON_AddNumberToObject(obj, "height", c->geom.height); cJSON_AddNumberToObject(obj, "height", c->geom.height);
cJSON_AddNumberToObject(obj, "scroller_proportion", (double)c->scroller_proportion);
return obj; return obj;
} }