app: visibility setting work around... peak software enfineering right here!!1
[staging/windowmanager.git] / src / controller_hooks.hpp
index 47ab0ec..c060b0b 100644 (file)
  * limitations under the License.
  */
 
-//
-// Created by mfritzsc on 7/28/17.
-//
-
 #ifndef TMCAGLWM_CONTROLLER_HOOKS_HPP
 #define TMCAGLWM_CONTROLLER_HOOKS_HPP
 
 #include <cstdint>
 
+#include <functional>
+
 namespace wm {
 
 struct App;
@@ -33,6 +31,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