aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-06 16:16:05 -0400
committerGitHub <noreply@github.com>2018-04-06 16:16:05 -0400
commit5c31b06d88135a62bd917a61e770c8219f6d5d72 (patch)
tree4323a9130346ca4d836b0ae70c03877e13310bfc /sway/ipc-json.c
parent656ef558a2a8d55cf77cbcc8ce01c861cb78ac97 (diff)
parent640232eb225058a18f20190235f679caf678e1f7 (diff)
Merge pull request #1758 from swaywm/revert-1757-boooooooxes
Revert "Break everything^W^WUse wlr_box for sway_container"
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 951adada..f9c6c90b 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(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));
+ 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));
return rect;
}