diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f9bfcb..6cad36d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,6 +97,7 @@ add_library(miracle-wm-implementation
src/floating_tree_container.h
src/wlr-output-management-unstable-v1_wrapper.cpp src/wlr-output-management-unstable-v1_wrapper.h
src/wlr-ouput-management-unstable-v1.h src/wlr-ouput-management-unstable-v1.cpp
+ src/output_listener.cpp src/output_listener.h
)
add_executable(miracle-wm
diff --git a/src/compositor_state.h b/src/compositor_state.h
index eda327d..e56fd1c 100644
--- a/src/compositor_state.h
+++ b/src/compositor_state.h
@@ -18,8 +18,9 @@ along with this program. If not, see .
#ifndef MIRACLE_WM_COMPOSITOR_STATE_H
#define MIRACLE_WM_COMPOSITOR_STATE_H
-#include
#include
+#include
+#include
namespace miracle
{
@@ -40,9 +41,11 @@ enum class WindowManagerMode
selecting
};
+/// Defines the high-level state of the compositor.
struct CompositorState
{
WindowManagerMode mode = WindowManagerMode::normal;
+ std::vector> output_list;
std::shared_ptr