Set opaque region
1 files changed, 5 insertions(+), 0 deletions(-) M main.c
M main.c => main.c +5 -0
@@ 651,6 651,11 @@ static int setup_wayland(struct context *ctx, bool layer_shell, bool vertical, i zwlr_layer_surface_v1_add_listener(ctx->layer_surface, &layer_surface_listener, ctx); } struct wl_region *full_region = wl_compositor_create_region(ctx->compositor); wl_region_add(full_region, 0, 0, INT_MAX, INT_MAX); wl_surface_set_opaque_region(ctx->surface, full_region); wl_region_destroy(full_region); wl_surface_commit(ctx->surface); wl_display_roundtrip(ctx->display);