Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
WIP split layouts, reading config, defining data layout.
[staging/windowmanager.git]
/
src
/
layers.hpp
diff --git
a/src/layers.hpp
b/src/layers.hpp
index
af1638a
..
924457f
100644
(file)
--- a/
src/layers.hpp
+++ b/
src/layers.hpp
@@
-26,6
+26,13
@@
namespace wm {
namespace wm {
+struct split_layout {
+ std::string name;
+ std::string main_match;
+ std::string sub_match;
+ int prio;
+};
+
struct layer {
using json = nlohmann::json;
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?
// 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);
explicit layer(nlohmann::json const &j);