diff options
author | Daniel Eklöf <daniel@ekloef.se> | 2023-07-03 12:58:33 +0200 |
---|---|---|
committer | Daniel Eklöf <daniel@ekloef.se> | 2023-07-03 12:58:33 +0200 |
commit | 670d577ad0cd45a0c7bf4a264b791a2cd86557c3 (patch) | |
tree | 65f3cf11510bc09b2402c3af91ea9e53895fb9a0 /main.c | |
parent | 5565d2c3371c51eb006307c6d507ad6ad43d4518 (diff) | |
download | wbg-670d577ad0cd45a0c7bf4a264b791a2cd86557c3.tar.gz |
main: mark surface as opaque
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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"); |