From b60545bdc6a820112b04dbe8b54d93816efa5a05 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Mon, 5 Oct 2020 10:28:37 -0500 Subject: wayland: update opaque region on runtime Made possible with 00b9c81. 34b8adc let the wayland surface set an opaque region depending on if alpha was set by the user or not. However, there was no attempted detection for runtime changes and it is possible (at least in wayland vulkan) to toggle the alpha on and off. So this meant, we could be incorrectly signalling an opaque region if the user happened to change the alpha. Additionally, add a helper function for this and use it everywhere we want to set the opaque region. --- video/out/wayland_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/wayland_common.h') diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h index e54e3ff447..f2c1a31f66 100644 --- a/video/out/wayland_common.h +++ b/video/out/wayland_common.h @@ -153,6 +153,7 @@ void vo_wayland_uninit(struct vo *vo); void vo_wayland_wakeup(struct vo *vo); void vo_wayland_wait_events(struct vo *vo, int64_t until_time_us); void vo_wayland_wait_frame(struct vo_wayland_state *wl); +void vo_wayland_set_opaque_region(struct vo_wayland_state *wl, int alpha); void vo_wayland_sync_clear(struct vo_wayland_state *wl); void wayland_sync_swap(struct vo_wayland_state *wl); void vo_wayland_sync_shift(struct vo_wayland_state *wl); -- cgit v1.2.3