diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-06 15:03:05 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-06 15:38:37 -0400 |
commit | 764489e73760534d49760af123cae46109564e86 (patch) | |
tree | 243104969dc80855d313faf5a0d360dd5508dc52 /sway/ipc-json.c | |
parent | d447460c0153a76a0bc484bb9866cef658b3102f (diff) |
Break everything^W^WUse wlr_box for sway_container
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index f9c6c90b..951adada 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -47,10 +47,10 @@ json_object *ipc_json_get_version() { static json_object *ipc_json_create_rect(struct sway_container *c) { json_object *rect = json_object_new_object(); - json_object_object_add(rect, "x", json_object_new_int((int32_t)c->x)); - json_object_object_add(rect, "y", json_object_new_int((int32_t)c->y)); - json_object_object_add(rect, "width", json_object_new_int((int32_t)c->width)); - json_object_object_add(rect, "height", json_object_new_int((int32_t)c->height)); + json_object_object_add(rect, "x", json_object_new_int(c->box.x)); + json_object_object_add(rect, "y", json_object_new_int(c->box.y)); + json_object_object_add(rect, "width", json_object_new_int(c->box.width)); + json_object_object_add(rect, "height", json_object_new_int(c->box.height)); return rect; } |