diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-05 15:58:24 -0800 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2014-11-07 01:14:03 -0800 |
commit | 83aab1d4be67fceb8c0cd27297cca086f1a9c3c5 (patch) | |
tree | d4a891eeda04b79074e2f911c041702f2bc371e4 /video/out/vo.h | |
parent | c920a3920e34fe7b1e501bf8a513ab2a23769af6 (diff) | |
download | mpv-83aab1d4be67fceb8c0cd27297cca086f1a9c3c5.tar.bz2 mpv-83aab1d4be67fceb8c0cd27297cca086f1a9c3c5.tar.xz |
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.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. |