diff options
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index ac551fae8e..12d2648d4e 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1982,6 +1982,13 @@ int vo_x11_control(struct vo *vo, int *events, int request, void *arg) *(double *)arg = fps; return VO_TRUE; } + case VOCTRL_GET_DISPLAY_RES: { + if (!x11->window || x11->parent) + return VO_NOTAVAIL; + ((int *)arg)[0] = x11->screenrc.x1; + ((int *)arg)[1] = x11->screenrc.y1; + return VO_TRUE; + } case VOCTRL_GET_HIDPI_SCALE: *(double *)arg = x11->dpi_scale; return VO_TRUE; |