app: when loading config, handle returned errors
[staging/windowmanager.git] / src / app.hpp
index 82acfda..247f772 100644 (file)
@@ -9,9 +9,11 @@
 #include <memory>
 
 #include "afb_binding_api.hpp"
+#include "controller_hooks.hpp"
+#include "layers.hpp"
+#include "layout.hpp"
 #include "result.hpp"
 #include "wayland.hpp"
-#include "layout.hpp"
 
 namespace wl {
 struct display;
@@ -25,6 +27,7 @@ namespace wm {
 
 struct App {
    struct binding_api api;
+   struct controller_hooks chooks;
 
    // This is the one thing, we do not own.
    struct wl::display *display;
@@ -33,6 +36,7 @@ struct App {
    std::vector<std::unique_ptr<struct wl::output>> outputs;
 
    layouts_type layouts;
+   surface_id_to_layer_map surface2layer;
 
    App(wl::display *d);
    ~App();
@@ -43,6 +47,9 @@ struct App {
    int init();
    int dispatch_events();
    int init_layout();
+
+   void surface_created(uint32_t surface_id);
+   void surface_removed(uint32_t surface_id);
 };
 
 }  // namespace wm