From 93c2a361b2144d82ec70208225c45afd8f355bd3 Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Wed, 2 Aug 2017 16:16:15 +0200 Subject: app/wayland: move late-tasks to App * Move late-tasks to App. * Add add_task() to controller_hooks. * Do not roundtrip at the end of App::execute_pending(), flush() is enough. * Tasks are now void() functions, need to capture what is needed. Signed-off-by: Marcus Fritzsch --- src/controller_hooks.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/controller_hooks.hpp') diff --git a/src/controller_hooks.hpp b/src/controller_hooks.hpp index 47ab0ec..8618edc 100644 --- a/src/controller_hooks.hpp +++ b/src/controller_hooks.hpp @@ -23,6 +23,8 @@ #include +#include + 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 &&); }; } // namespace wm -- cgit 1.2.3-korg