From ef6f72786ab7c7791a0dce9b63412b04b9351ddb Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Tue, 12 Sep 2017 11:29:38 +0200 Subject: policy: add a simple policy stub, broke some layouting tho Signed-off-by: Marcus Fritzsch --- src/app.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/app.hpp') 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 -- cgit 1.2.3-korg