mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
Merge pull request #1076 from IAteYourCookies/expose-scroller-proportion
ipc: expose scroller_proportion in client JSON
This commit is contained in:
commit
186720d023
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue