layers: fix layers parsing, do not sort by prio
[staging/windowmanager.git] / src / layers.hpp
index 924457f..0601614 100644 (file)
@@ -18,6 +18,8 @@
 #define TMCAGLWM_LAYERS_H
 
 #include <json.hpp>
+
+#include <regex>
 #include <set>
 #include <string>
 
@@ -30,7 +32,7 @@ struct split_layout {
    std::string name;
    std::string main_match;
    std::string sub_match;
-   int prio;
+   int prio;  // no entirely sure we will use this
 };
 
 struct layer {