app: use config to determine json config file names
[staging/windowmanager.git] / src / app.hpp
index 247f772..5bbd2db 100644 (file)
@@ -14,6 +14,7 @@
 #include "layout.hpp"
 #include "result.hpp"
 #include "wayland.hpp"
+#include "config.hpp"
 
 namespace wl {
 struct display;
@@ -35,8 +36,10 @@ struct App {
    std::unique_ptr<struct genivi::controller> controller;
    std::vector<std::unique_ptr<struct wl::output>> outputs;
 
+   struct config config;
+
    layouts_type layouts;
-   surface_id_to_layer_map surface2layer;
+   layer_map layers;
 
    App(wl::display *d);
    ~App();