aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:20 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:20 +0200
commit2089b5b1ba2f04f037be1ef897bf79790bf501e2 (patch)
treec8501c5cf0c9cb28741e39ee518477360175a6cb /src/app.hpp
parentcc06687c8043b93b08202c6c90e588d9b1897c31 (diff)
WIP split layouts, reading config, defining data layout.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/app.hpp b/src/app.hpp
index d1fc912..37122ef 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -98,6 +98,17 @@ struct id_allocator {
}
};
+struct LayoutState {
+ enum States {
+ LayoutSingle,
+ LayoutSplit,
+ };
+
+ enum States state;
+ int main;
+ int sub;
+};
+
struct App {
struct binding_api api;
struct controller_hooks chooks;
@@ -122,6 +133,8 @@ struct App {
return this->id_alloc.lookup(id);
}
+ struct LayoutState state;
+
explicit App(wl::display *d);
~App();
@@ -159,6 +172,8 @@ struct App {
void activate(unsigned id);
void deactivate(unsigned id);
+
+ bool can_split(unsigned new_id);
};
} // namespace wm