From 752dce9284e7af0b1c791220433a4157dfff20b5 Mon Sep 17 00:00:00 2001 From: Alexander Preisinger Date: Mon, 18 Aug 2014 22:00:39 +0200 Subject: 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. --- video/out/wayland_common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/out/wayland_common.h') 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; -- cgit v1.2.3