X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=staging%2Fwindowmanager.git;a=blobdiff_plain;f=src%2Fapp.hpp;h=ed27cf23176b73817f8f20aa28d5736bd78e2419;hp=71bc2c27f0f044e9ddf7c5eb0aff3b42fc10d2da;hb=ef6f72786ab7c7791a0dce9b63412b04b9351ddb;hpb=6946f6008999f9aaffdbc3043afbfe17fe04fc49 diff --git a/src/app.hpp b/src/app.hpp index 71bc2c2..ed27cf2 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -30,6 +30,7 @@ #include "controller_hooks.hpp" #include "layers.hpp" #include "layout.hpp" +#include "policy.hpp" #include "result.hpp" #include "wayland.hpp" @@ -126,6 +127,8 @@ struct App { std::vector pending_end_draw; + Policy policy; + explicit App(wl::display *d); ~App(); @@ -179,6 +182,9 @@ private: void deactivate_main_surface(); bool can_split(struct LayoutState const &state, int new_id); + void try_layout(struct LayoutState &state, + struct LayoutState const &new_layout, + std::function apply); }; } // namespace wm