diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-02 14:13:08 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-08-08 17:24:00 +0200 |
commit | a9215145dd85f9245accda557f3b92e34d016107 (patch) | |
tree | 3e02688ea1ce569027b626be4161f7754420f246 /src | |
parent | 04168cc638677adc9d030816dd8b95987df560d0 (diff) |
wayland: add {surface,layer}_exists(uint32_t) methods
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/wayland.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wayland.hpp b/src/wayland.hpp index b0b3674..4191ea0 100644 --- a/src/wayland.hpp +++ b/src/wayland.hpp @@ -298,6 +298,15 @@ struct controller : public wayland_proxy<struct ivi_controller> { 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 |