diff options
author | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-12 11:29:40 +0200 |
---|---|---|
committer | Marcus Fritzsch <marcus_fritzsch@mentor.com> | 2017-09-12 11:29:40 +0200 |
commit | 04a5bb45e7c6d3e713c49ce2125173a8b7e46b5b (patch) | |
tree | 0db6e5eda901e8649c92121d5320d81abe14095c | |
parent | 9b397b09fe6eef8936ad41763e4908e99ce274d6 (diff) |
Add visibility dst-rect controller hooks
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r-- | src/controller_hooks.hpp | 3 | ||||
-rw-r--r-- | src/wayland.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/controller_hooks.hpp b/src/controller_hooks.hpp index 18569aa..b30c05e 100644 --- a/src/controller_hooks.hpp +++ b/src/controller_hooks.hpp @@ -29,8 +29,9 @@ struct controller_hooks { struct App *app; void surface_created(uint32_t surface_id); - void surface_removed(uint32_t surface_id); + void surface_visibility(uint32_t surface_id, uint32_t v); + void surface_destination_rectangle(uint32_t surface_id, uint32_t x, uint32_t y, uint32_t w, uint32_t h); }; } // namespace wm diff --git a/src/wayland.cpp b/src/wayland.cpp index 49e01aa..05e155f 100644 --- a/src/wayland.cpp +++ b/src/wayland.cpp @@ -624,6 +624,7 @@ void controller::surface_visibility(struct surface *s, int32_t visibility) { logdebug("genivi::surface %s @ %d v %i", __func__, s->id, visibility); this->sprops[s->id].visibility = visibility; + this->chooks->surface_visibility(s->id, visibility); } void controller::surface_opacity(struct surface *s, float opacity) { @@ -646,6 +647,7 @@ void controller::surface_destination_rectangle(struct surface *s, int32_t x, logdebug("genivi::surface %s @ %d x %i y %i w %i h %i", __func__, s->id, x, y, width, height); this->sprops[s->id].dst_rect = rect{width, height, x, y}; + this->chooks->surface_destination_rectangle(s->id, x, y, width, height); } void controller::surface_configuration(struct surface *s, int32_t width, |