aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc-server.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/ipc-server.c')
-rw-r--r--sway/ipc-server.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c
index 34e940ad..ed710be5 100644
--- a/sway/ipc-server.c
+++ b/sway/ipc-server.c
@@ -31,6 +31,7 @@
#include "sway/server.h"
#include "sway/input/input-manager.h"
#include "sway/input/seat.h"
+#include "sway/tree/root.h"
#include "sway/tree/view.h"
#include "list.h"
#include "log.h"
@@ -615,7 +616,7 @@ void ipc_client_handle_command(struct ipc_client *client) {
}
}
struct sway_output *output;
- wl_list_for_each(output, &root_container.sway_root->outputs, link) {
+ wl_list_for_each(output, &root_container.sway_root->all_outputs, link) {
if (!output->swayc) {
json_object_array_add(outputs,
ipc_json_describe_disabled_output(output));