mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
ipc: move refresh from output to output->current_mode
This commit is contained in:
parent
71686ed0e7
commit
ef888321ba
2 changed files with 11 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue