summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 5c3c5aea0d..ef72fb4ca7 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -1492,6 +1492,13 @@ int vo_x11_control(struct vo *vo, int *events, int request, void *arg)
case VOCTRL_UPDATE_WINDOW_TITLE:
vo_x11_update_window_title(vo);
return VO_TRUE;
+ case VOCTRL_GET_DISPLAY_FPS: {
+ double fps = vo_x11_vm_get_fps(vo);
+ if (fps <= 0)
+ break;
+ *(double *)arg = fps;
+ return VO_TRUE;
+ }
}
return VO_NOTIMPL;
}