diff options
author | emersion <contact@emersion.fr> | 2018-11-03 23:44:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-03 23:44:04 +0100 |
commit | d19648a304dd7c6731ce53a7b7a265019f5b4473 (patch) | |
tree | 0396af53f1684e36469ea8a651281d3c1228f391 /sway | |
parent | Merge pull request #3021 from Snaipe/singlekey-binding-trigger (diff) | |
parent | ipc: move refresh from output to output->current_mode (diff) | |
download | sway-d19648a304dd7c6731ce53a7b7a265019f5b4473.tar.gz sway-d19648a304dd7c6731ce53a7b7a265019f5b4473.tar.zst sway-d19648a304dd7c6731ce53a7b7a265019f5b4473.zip |
Merge pull request #3061 from colemickens/output-current-mode
ipc: move refresh to current_mode
Diffstat (limited to 'sway')
-rw-r--r-- | sway/ipc-json.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index 7cc965c8..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, | |||
118 | json_object_new_string(wlr_output->serial)); | 118 | json_object_new_string(wlr_output->serial)); |
119 | json_object_object_add(object, "scale", | 119 | json_object_object_add(object, "scale", |
120 | json_object_new_double(wlr_output->scale)); | 120 | json_object_new_double(wlr_output->scale)); |
121 | json_object_object_add(object, "refresh", | ||
122 | json_object_new_int(wlr_output->refresh)); | ||
123 | json_object_object_add(object, "transform", | 121 | json_object_object_add(object, "transform", |
124 | json_object_new_string( | 122 | json_object_new_string( |
125 | ipc_json_get_output_transform(wlr_output->transform))); | 123 | ipc_json_get_output_transform(wlr_output->transform))); |
@@ -136,6 +134,8 @@ static void ipc_json_describe_output(struct sway_output *output, | |||
136 | json_object_new_int(mode->width)); | 134 | json_object_new_int(mode->width)); |
137 | json_object_object_add(mode_object, "height", | 135 | json_object_object_add(mode_object, "height", |
138 | json_object_new_int(mode->height)); | 136 | json_object_new_int(mode->height)); |
137 | json_object_object_add(mode_object, "refresh", | ||
138 | json_object_new_int(mode->refresh)); | ||
139 | json_object_array_add(modes_array, mode_object); | 139 | json_object_array_add(modes_array, mode_object); |
140 | } | 140 | } |
141 | 141 | ||
@@ -146,6 +146,8 @@ static void ipc_json_describe_output(struct sway_output *output, | |||
146 | json_object_new_int(wlr_output->width)); | 146 | json_object_new_int(wlr_output->width)); |
147 | json_object_object_add(current_mode_object, "height", | 147 | json_object_object_add(current_mode_object, "height", |
148 | json_object_new_int(wlr_output->height)); | 148 | json_object_new_int(wlr_output->height)); |
149 | json_object_object_add(current_mode_object, "refresh", | ||
150 | json_object_new_int(wlr_output->refresh)); | ||
149 | json_object_object_add(object, "current_mode", current_mode_object); | 151 | json_object_object_add(object, "current_mode", current_mode_object); |
150 | 152 | ||
151 | struct sway_node *parent = node_get_parent(&output->node); | 153 | struct sway_node *parent = node_get_parent(&output->node); |