diff options
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r-- | video/out/x11_common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 72386543de..d1ccdd7223 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -29,6 +29,13 @@ struct vo; struct mp_log; +#define MAX_DISPLAYS 32 // ought to be enough for everyone + +struct xrandr_display { + struct mp_rect rc; + double fps; +}; + struct vo_x11_state { struct mp_log *log; Display *display; @@ -40,6 +47,9 @@ struct vo_x11_state { int ws_height; struct mp_rect screenrc; + struct xrandr_display displays[MAX_DISPLAYS]; + int num_displays; + bool screensaver_enabled; bool dpms_touched; double screensaver_time_last; @@ -61,6 +71,7 @@ struct vo_x11_state { // Current actual window position (updated on window move/resize events). struct mp_rect winrc; + double current_display_fps; int pending_vo_events; |