summaryrefslogtreecommitdiffstats
path: root/src/layers.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/layers.hpp
parentcc06687c8043b93b08202c6c90e588d9b1897c31 (diff)
WIP split layouts, reading config, defining data layout.
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/layers.hpp')
-rw-r--r--src/layers.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/layers.hpp b/src/layers.hpp
index af1638a..924457f 100644
--- a/src/layers.hpp
+++ b/src/layers.hpp
@@ -26,6 +26,13 @@
namespace wm {
+struct split_layout {
+ std::string name;
+ std::string main_match;
+ std::string sub_match;
+ int prio;
+};
+
struct layer {
using json = nlohmann::json;
@@ -47,6 +54,7 @@ struct layer {
// put on this layer.
std::string role;
// XXX perhaps a zorder is needed here?
+ std::vector<struct split_layout> layouts;
explicit layer(nlohmann::json const &j);