app/wayland: move late-tasks to App
[staging/windowmanager.git] / src / controller_hooks.hpp
index 47ab0ec..8618edc 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <cstdint>
 
+#include <functional>
+
 namespace wm {
 
 struct App;
@@ -33,6 +35,8 @@ struct controller_hooks {
    void surface_created(uint32_t surface_id);
 
    void surface_removed(uint32_t surface_id);
+
+   void add_task(char const *name, std::function<void()> &&);
 };
 
 }  // namespace wm