aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-25 18:57:19 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-25 18:57:19 +0000
commit2855d06c6e99bff2ce32e1d94b09afed99b78735 (patch)
tree617cbf4bfb3acc4a313bffe5e50118df306879c1
parentwayland: synchronize the CSD surfaces to the main surface (diff)
wayland: mark the whole search surface as opaque
-rw-r--r--wayland.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index f49e71d2..1987c72a 100644
--- a/wayland.c
+++ b/wayland.c
@@ -956,6 +956,11 @@ wayl_win_init(struct terminal *term)
wayl->sub_compositor, win->search_surface, win->surface);
wl_subsurface_set_desync(win->search_sub_surface);
+ struct wl_region *region = wl_compositor_create_region(term->wl->compositor);
+ wl_region_add(region, 0, 0, INT32_MAX, INT32_MAX);
+ wl_surface_set_opaque_region(win->search_surface, region);
+ wl_region_destroy(region);
+
wl_surface_commit(win->surface);
return win;