diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-12 11:29:38 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-12 11:29:38 +0200 |
commit | ef6f72786ab7c7791a0dce9b63412b04b9351ddb (patch) | |
tree | 2437c97a36e1babcefc1571a93a0207b5cadb756 /src/app.hpp | |
parent | 6946f6008999f9aaffdbc3043afbfe17fe04fc49 (diff) |
policy: add a simple policy stub, broke some layouting tho
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/app.hpp')
-rw-r--r-- | src/app.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<int> 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<void(LayoutState const &nl)> apply); }; } // namespace wm |