diff options
author | Daniel van Vugt <daniel.van.vugt@canonical.com> | 2023-02-17 18:13:30 +0800 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-28 15:07:14 +0000 |
commit | 022790a2b49e4d21cb803842cb54958cca9c732e (patch) | |
tree | 5c3a90733b46b7dceeb6e1a2e02bfef1a1d97592 /video/out/wayland_common.h | |
parent | 1f493b76719095c4db612c4102b54ce0f558728d (diff) | |
download | mpv-022790a2b49e4d21cb803842cb54958cca9c732e.tar.bz2 mpv-022790a2b49e4d21cb803842cb54958cca9c732e.tar.xz |
wayland: request frame callbacks on the topmost surface
Which is wl->video_surface for vo_dmabuf_wayland.
Listening on wl->surface results in freezes if it is occluded and
culled by the compositor. Which mutter does, and the wl_surface::frame
spec warns about:
> A server should avoid signaling the frame callbacks if the
> surface is not visible in any way, e.g. the surface is off-screen,
> or completely obscured by other opaque surfaces.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r-- | video/out/wayland_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index 06d742e5ed..c9921cc60b 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -50,6 +50,7 @@ struct vo_wayland_state { struct wl_shm *shm; struct wl_surface *surface; struct wl_surface *video_surface; + struct wl_surface *callback_surface; struct wl_subsurface *video_subsurface; /* Geometry */ |