Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
std::function<void(struct controller *)> &&f);
void execute_pending();
std::function<void(struct controller *)> &&f);
void execute_pending();
+
+ bool surface_exists(uint32_t id) const {
+ return this->surfaces.find(id) != this->surfaces.end();
+ }
+
+ bool layer_exists(uint32_t id) const {
+ return this->layers.find(id) != this->layers.end();
+ }
+
controller(struct wl_registry *r, uint32_t name, uint32_t version);
// Requests
controller(struct wl_registry *r, uint32_t name, uint32_t version);
// Requests