aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-07-03 12:58:33 +0200
committerDaniel Eklöf <daniel@ekloef.se>2023-07-03 12:58:33 +0200
commit670d577ad0cd45a0c7bf4a264b791a2cd86557c3 (patch)
tree65f3cf11510bc09b2402c3af91ea9e53895fb9a0 /main.c
parent5565d2c3371c51eb006307c6d507ad6ad43d4518 (diff)
downloadwbg-670d577ad0cd45a0c7bf4a264b791a2cd86557c3.tar.gz
main: mark surface as opaque
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 03a7df6..6e938f0 100644
--- a/main.c
+++ b/main.c
@@ -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");