diff options
author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-05-19 22:32:41 -0400 |
---|---|---|
committer | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-08-14 02:38:50 -0400 |
commit | 342830e99c3e88c6189a8533051485d9b682a814 (patch) | |
tree | 76773a12ca6bf6bee4a43d0bbdcc8ce39133e200 | |
parent | 18417026be9b9ac0f269c99fa3bfd49d7cb91330 (diff) |
wlr_scene/surface: Hook through opaque metadata
-rw-r--r-- | types/scene/surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/types/scene/surface.c b/types/scene/surface.c index d3a0b035..b122d210 100644 --- a/types/scene/surface.c +++ b/types/scene/surface.c @@ -59,6 +59,8 @@ static void set_buffer_with_surface_state(struct wlr_scene_buffer *scene_buffer, struct wlr_surface *surface) { struct wlr_surface_state *state = &surface->current; + wlr_scene_buffer_set_opaque_region(scene_buffer, &surface->opaque_region); + struct wlr_fbox src_box; wlr_surface_get_buffer_source_box(surface, &src_box); wlr_scene_buffer_set_source_box(scene_buffer, &src_box); |