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 | Merge pull request #1755 from emersion/view-child-hidpi (diff) | |
download | sway-764489e73760534d49760af123cae46109564e86.tar.gz sway-764489e73760534d49760af123cae46109564e86.tar.zst sway-764489e73760534d49760af123cae46109564e86.zip |
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() { | |||
47 | static json_object *ipc_json_create_rect(struct sway_container *c) { | 47 | static json_object *ipc_json_create_rect(struct sway_container *c) { |
48 | json_object *rect = json_object_new_object(); | 48 | json_object *rect = json_object_new_object(); |
49 | 49 | ||
50 | json_object_object_add(rect, "x", json_object_new_int((int32_t)c->x)); | 50 | json_object_object_add(rect, "x", json_object_new_int(c->box.x)); |
51 | json_object_object_add(rect, "y", json_object_new_int((int32_t)c->y)); | 51 | json_object_object_add(rect, "y", json_object_new_int(c->box.y)); |
52 | json_object_object_add(rect, "width", json_object_new_int((int32_t)c->width)); | 52 | json_object_object_add(rect, "width", json_object_new_int(c->box.width)); |
53 | json_object_object_add(rect, "height", json_object_new_int((int32_t)c->height)); | 53 | json_object_object_add(rect, "height", json_object_new_int(c->box.height)); |
54 | 54 | ||
55 | return rect; | 55 | return rect; |
56 | } | 56 | } |