From d34b46aae11efe3f5060067d1f2ee3ed3eac2b7e Mon Sep 17 00:00:00 2001 From: Marcus Fritzsch Date: Fri, 23 Jun 2017 12:40:55 +0200 Subject: [PATCH] wayland: initalize all controll members * Also; added output_size - for now. Signed-off-by: Marcus Fritzsch --- src/wayland.cpp | 7 ++++++- src/wayland.hpp | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/wayland.cpp b/src/wayland.cpp index 52b2371..a512979 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -194,7 +194,12 @@ constexpr struct ivi_controller_listener listener = { controller::controller(struct wl_registry *r, uint32_t name, uint32_t version) : wayland_proxy( - wl_registry_bind(r, name, &ivi_controller_interface, version)) { + wl_registry_bind(r, name, &ivi_controller_interface, version)) + , surfaces{} + , layers{} + , screens{} + , pending{} + , output_size{} { ivi_controller_add_listener(this->proxy, &listener, this); } diff --git a/src/wayland.hpp b/src/wayland.hpp index cb4c8ed..a98c36d 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -284,6 +284,8 @@ struct controller : public wayland_proxy { name_task_pair; std::vector pending; + size output_size; + void add_task(char const *name, std::function &&f) { this->pending.emplace_back(std::make_pair(name, f)); -- 2.16.6