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