X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.hpp;h=247f772d4100a9ba961cbab2b7845f34262fe1c7;hb=d16426164142cdddeaf16cb18a6ac5f191c8e0e4;hp=82acfda2d09d480c739434b9c93f58be01995673;hpb=353bfe55c134bb19247bf26c2498c0d87f80dc18;p=staging%2Fwindowmanager.git diff --git a/src/app.hpp b/src/app.hpp index 82acfda..247f772 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -9,9 +9,11 @@ #include #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> 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