diff options
author | Simon Ser <contact@emersion.fr> | 2022-06-23 20:50:16 +0200 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-07-04 21:58:24 +0300 |
commit | 11e05c57115e7f0e915e80f006468b7e1af4373b (patch) | |
tree | 45ef663160673d0ff79dd50c33b78a096a376442 /sway/ipc-json.c | |
parent | Reuse parsed PangoFontDescription (diff) | |
download | sway-11e05c57115e7f0e915e80f006468b7e1af4373b.tar.gz sway-11e05c57115e7f0e915e80f006468b7e1af4373b.tar.zst sway-11e05c57115e7f0e915e80f006468b7e1af4373b.zip |
ipc: add "power" to output reply
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index f52a5ecd..287c158d 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c | |||
@@ -277,6 +277,8 @@ static void ipc_json_describe_enabled_output(struct sway_output *output, | |||
277 | json_object_object_add(object, "active", json_object_new_boolean(true)); | 277 | json_object_object_add(object, "active", json_object_new_boolean(true)); |
278 | json_object_object_add(object, "dpms", | 278 | json_object_object_add(object, "dpms", |
279 | json_object_new_boolean(wlr_output->enabled)); | 279 | json_object_new_boolean(wlr_output->enabled)); |
280 | json_object_object_add(object, "power", | ||
281 | json_object_new_boolean(wlr_output->enabled)); | ||
280 | json_object_object_add(object, "layout", json_object_new_string("output")); | 282 | json_object_object_add(object, "layout", json_object_new_string("output")); |
281 | json_object_object_add(object, "orientation", | 283 | json_object_object_add(object, "orientation", |
282 | json_object_new_string( | 284 | json_object_new_string( |
@@ -354,6 +356,7 @@ json_object *ipc_json_describe_disabled_output(struct sway_output *output) { | |||
354 | json_object_new_string(wlr_output->name)); | 356 | json_object_new_string(wlr_output->name)); |
355 | json_object_object_add(object, "active", json_object_new_boolean(false)); | 357 | json_object_object_add(object, "active", json_object_new_boolean(false)); |
356 | json_object_object_add(object, "dpms", json_object_new_boolean(false)); | 358 | json_object_object_add(object, "dpms", json_object_new_boolean(false)); |
359 | json_object_object_add(object, "power", json_object_new_boolean(false)); | ||
357 | 360 | ||
358 | json_object_object_add(object, "current_workspace", NULL); | 361 | json_object_object_add(object, "current_workspace", NULL); |
359 | 362 | ||