From ef888321bacd22d061670d7172b21a79362d7d09 Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Sat, 3 Nov 2018 15:07:51 -0700 Subject: ipc: move refresh from output to output->current_mode --- sway/ipc-json.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sway') diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 7d4f75ed..4583558c 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -118,8 +118,6 @@ static void ipc_json_describe_output(struct sway_output *output, json_object_new_string(wlr_output->serial)); json_object_object_add(object, "scale", json_object_new_double(wlr_output->scale)); - json_object_object_add(object, "refresh", - json_object_new_int(wlr_output->refresh)); json_object_object_add(object, "transform", json_object_new_string( ipc_json_get_output_transform(wlr_output->transform))); @@ -148,6 +146,8 @@ static void ipc_json_describe_output(struct sway_output *output, json_object_new_int(wlr_output->width)); json_object_object_add(current_mode_object, "height", json_object_new_int(wlr_output->height)); + json_object_object_add(current_mode_object, "refresh", + json_object_new_int(wlr_output->refresh)); json_object_object_add(object, "current_mode", current_mode_object); struct sway_node *parent = node_get_parent(&output->node); -- cgit v1.2.3