summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorDudemanguy911 <random342@airmail.cc>2019-10-20 12:46:42 -0500
committerDudemanguy <random342@airmail.cc>2019-10-20 19:50:10 +0000
commit9dead2b932e13be6e25cdff20294fbb9e616d69c (patch)
tree063608c335b43ef430877bb7e647ca1beff71500 /video/out/wayland_common.h
parent525e712757c8cc5c61f3eeb23234f9264fcb8a2c (diff)
downloadmpv-9dead2b932e13be6e25cdff20294fbb9e616d69c.tar.bz2
mpv-9dead2b932e13be6e25cdff20294fbb9e616d69c.tar.xz
wayland: fix presentation time
There's 2 stupid things here that need to be fixed. First of all, vulkan wasn't actually using presentation time because somehow the get_vsync function in context.c disappeared. Secondly, if the mpv window was hidden it was updating the ust time based on the refresh_usec but really it should simply just not feed any information to the vsync info structure. So this adds some logic to assume whether or not a window is hidden.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index 0e9705cce8..f0c11e080a 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -71,6 +71,8 @@ struct vo_wayland_state {
bool maximized;
bool configured;
bool frame_wait;
+ bool hidden;
+ int timeout_count;
int wakeup_pipe[2];
int pending_vo_events;
int mouse_x;