diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-02 16:16:15 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | 93c2a361b2144d82ec70208225c45afd8f355bd3 (patch) | |
tree | 43801ffca32edaec732b391f4bbf5633de09f6cf /src/wayland.hpp | |
parent | 9b094f7e17736529e8fd1d25515112f9a1a2daac (diff) |
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 <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.hpp')
-rw-r--r-- | src/wayland.hpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/wayland.hpp b/src/wayland.hpp index 4191ea0..85423fd 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -279,10 +279,6 @@ struct controller : public wayland_proxy<struct ivi_controller> { layer_map_type layers; screen_map_type screens; - typedef std::pair<char const *, std::function<void(struct controller *)>> - name_task_pair; - std::vector<name_task_pair> pending; - size output_size; wm::controller_hooks *chooks; @@ -294,11 +290,6 @@ struct controller : public wayland_proxy<struct ivi_controller> { void add_proxy_to_id_mapping(struct wl_output *p, uint32_t id); void remove_proxy_to_id_mapping(struct wl_output *p); - void add_task(char const *name, - std::function<void(struct controller *)> &&f); - void execute_pending(); - - bool surface_exists(uint32_t id) const { return this->surfaces.find(id) != this->surfaces.end(); } |