summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--video/out/wayland_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 3d803ffb42..fa34efb949 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -807,15 +807,19 @@ static bool create_window (struct vo_wayland_state *wl)
// Commits on surfaces bound to a subsurface are cached until the parent
// surface is commited, in this case the video surface.
// Which means we can call commit anywhere.
+ struct wl_region *input =
+ wl_compositor_create_region(wl->display.compositor);
for (int i = 0; i < MAX_OSD_PARTS; ++i) {
wl->window.osd_surfaces[i] =
wl_compositor_create_surface(wl->display.compositor);
+ wl_surface_set_input_region(wl->window.osd_surfaces[i], input);
wl->window.osd_subsurfaces[i] =
wl_subcompositor_get_subsurface(wl->display.subcomp,
wl->window.osd_surfaces[i],
wl->window.video_surface); // parent
wl_subsurface_set_sync(wl->window.osd_subsurfaces[i]);
}
+ wl_region_destroy(input);
if (!wl->window.shell_surface) {
MP_ERR(wl, "creating shell surface failed\n");