aboutsummaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/app.hpp b/src/app.hpp
index 57ffee2..b7d6815 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -235,23 +235,22 @@ struct App {
void surface_removed(uint32_t surface_id);
private:
-#if 1 // @@@@@
PolicyManager pm_;
LayoutManager lm_;
std::unordered_map<std::string, int> role2surfaceid_;
std::unordered_map<std::string, std::string> app2role_;
+ std::unordered_map<std::string, std::string> role2app_;
std::unordered_map<int, int> appid2role_;
int allocateSurface();
void setSurfaceSize(const char* role, const char* area);
- std::string roleToApp(std::string role);
int loadAppDb();
#if 0
struct id_allocator app_id_alloc_;
std::unordered_map<std::string, int> appname2appid_;
#endif
-#endif
+
optional<int> lookup_id(char const *name);
optional<std::string> lookup_name(int id);