diff options
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | main.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fb490f..7b1b71c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ ## Unreleased ### Added + +* We now hint to the compositor that the background is fully opaque. + + ### Changed ### Deprecated ### Removed @@ -267,6 +267,11 @@ add_surface_to_output(struct output *output) wl_surface_set_input_region(surf, empty_region); wl_region_destroy(empty_region); + /* Surface is fully opaque (i.e. non-transparent) */ + struct wl_region *opaque_region = wl_compositor_create_region(compositor); + wl_surface_set_opaque_region(surf, opaque_region); + wl_region_destroy(opaque_region); + struct zwlr_layer_surface_v1 *layer = zwlr_layer_shell_v1_get_layer_surface( layer_shell, surf, output->wl_output, ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND, "wallpaper"); |