summaryrefslogtreecommitdiffstats
path: root/src/app.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app.hpp')
-rw-r--r--src/app.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.hpp b/src/app.hpp
index 63334b3..3f899ce 100644
--- a/src/app.hpp
+++ b/src/app.hpp
@@ -57,6 +57,9 @@ struct App {
layouts_type layouts;
layer_map layers;
+ typedef std::pair<char const *, std::function<void()>> name_task_pair;
+ std::vector<name_task_pair> pending;
+
App(wl::display *d);
~App();
@@ -68,6 +71,9 @@ struct App {
int init_layout();
void surface_set_layout(uint32_t surface_id);
+ void add_task(char const *name, std::function<void()> &&f);
+ void execute_pending();
+
void surface_created(uint32_t surface_id);
void surface_removed(uint32_t surface_id);
};