summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.h
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-08-18 22:00:39 +0200
committerAlexander Preisinger <alexander.preisinger@gmail.com>2014-08-18 22:00:39 +0200
commit752dce9284e7af0b1c791220433a4157dfff20b5 (patch)
tree65f4d3f42b98ec8acaddc33063cd0c77df2edb4d /video/out/wayland_common.h
parent39b8b0a41f6b8aae0eec86d5e59bae3609bd7a1f (diff)
downloadmpv-752dce9284e7af0b1c791220433a4157dfff20b5.tar.bz2
mpv-752dce9284e7af0b1c791220433a4157dfff20b5.tar.xz
wayland: dynamically report display fps
Only reports the most recently entered output if the window is displayed on 2 or more outputs. Should be changed to the lowest fps of all outputs the window is visible. Until no one complains this will have to wait. Look for the VO framedropping for more information on this topic.
Diffstat (limited to 'video/out/wayland_common.h')
-rw-r--r--video/out/wayland_common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/wayland_common.h b/video/out/wayland_common.h
index dc446bc6f3..5702372731 100644
--- a/video/out/wayland_common.h
+++ b/video/out/wayland_common.h
@@ -41,6 +41,7 @@ struct vo_wayland_output {
uint32_t flags;
int32_t width;
int32_t height;
+ int32_t refresh_rate; // fps (mHz)
struct wl_list link;
};
@@ -72,7 +73,7 @@ struct vo_wayland_state {
struct wl_list output_list;
struct wl_output *fs_output; /* fullscreen output */
- int output_mode_received;
+ struct vo_wayland_output *current_output;
int display_fd;