mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Break everything^W^WUse wlr_box for sway_container
This commit is contained in:
parent
d447460c01
commit
764489e737
13 changed files with 144 additions and 145 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue