From 83aab1d4be67fceb8c0cd27297cca086f1a9c3c5 Mon Sep 17 00:00:00 2001 From: Kevin Mitchell Date: Wed, 5 Nov 2014 15:58:24 -0800 Subject: vo/x11: implement VOCTRL_GET_DISPLAY_NAMES with xrandr names (e.g., "LVDS1") XRRGetOutputInfo contains a "name" element which corresponds to to the display names given to the user by the "xrandr" command line utility. Copy it into the xrandr_display struct for each display. On VOCTRL_GET_DISPLAY_NAMES, send a copy of the names of the displays spanned by the mpv window on. --- video/out/vo.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/out/vo.h') diff --git a/video/out/vo.h b/video/out/vo.h index 6906cab222..60e887444c 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -87,6 +87,10 @@ enum mp_voctrl { VOCTRL_GET_WIN_STATE, // int* (VO_WIN_STATE_* flags) + // char *** (NULL terminated array compatible with CONF_TYPE_STRING_LIST) + // names for displays the window is on + VOCTRL_GET_DISPLAY_NAMES, + // The VO is supposed to set "known" fields, and leave the others // untouched or set to 0. // imgfmt/w/h/d_w/d_h can be omitted for convenience. -- cgit v1.2.3