aboutsummaryrefslogtreecommitdiff
path: root/examples/output-layers.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/output-layers.c')
-rw-r--r--examples/output-layers.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/output-layers.c b/examples/output-layers.c
index d2f3c188..2ccfafe1 100644
--- a/examples/output-layers.c
+++ b/examples/output-layers.c
@@ -74,8 +74,12 @@ static void output_handle_frame(struct wl_listener *listener, void *data) {
*layer_state = (struct wlr_output_layer_state){
.layer = output_surface->layer,
.buffer = output_surface->buffer,
- .x = output_surface->x,
- .y = output_surface->y,
+ .dst_box = {
+ .x = output_surface->x,
+ .y = output_surface->y,
+ .width = output_surface->wlr_surface->current.width,
+ .height = output_surface->wlr_surface->current.height,
+ },
};
}