aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sway/ipc-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 8aa9557e..51e6a995 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -577,7 +577,7 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object
struct wlr_box window_box = {
c->pending.content_x - c->pending.x,
- (c->current.border == B_PIXEL) ? c->current.border_thickness : 0,
+ (c->current.border == B_PIXEL) ? c->pending.content_y - c->pending.y : 0,
c->pending.content_width,
c->pending.content_height
};