mirror of
https://github.com/mpv-player/mpv
synced 2024-10-30 04:46:41 +01:00
options: remove --display
Was used to set the X11 display. XDisplayName(NULL) does the same, using the DISPLAY environment variable instead.
This commit is contained in:
parent
a540881571
commit
2628ff6224
@ -463,15 +463,6 @@
|
||||
Force demuxer type. Use a '+' before the name to force it, this will skip
|
||||
some checks! Give the demuxer name as printed by ``--demuxer=help``.
|
||||
|
||||
--display=<name>
|
||||
(X11 only)
|
||||
Specify the hostname and display number of the X server you want to
|
||||
display on.
|
||||
|
||||
*EXAMPLE*:
|
||||
|
||||
``--display=xtest.localdomain:0``
|
||||
|
||||
--doubleclick-time=<milliseconds>
|
||||
Time in milliseconds to recognize two consecutive button presses as a
|
||||
double-click (default: 300).
|
||||
|
@ -576,10 +576,6 @@ const m_option_t mplayer_opts[]={
|
||||
|
||||
{"edlout", &edl_output_filename, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||
|
||||
#ifdef CONFIG_X11
|
||||
{"display", &mDisplayName, CONF_TYPE_STRING, 0, 0, 0, NULL},
|
||||
#endif
|
||||
|
||||
// force window width/height or resolution (with -vm)
|
||||
OPT_INTRANGE("x", screen_size_x, 0, 0, 4096),
|
||||
OPT_INTRANGE("y", screen_size_y, 0, 0, 4096),
|
||||
|
@ -87,8 +87,6 @@ int stop_xscreensaver = 1;
|
||||
|
||||
static int dpms_disabled = 0;
|
||||
|
||||
char *mDisplayName = NULL;
|
||||
|
||||
char **vo_fstype_list;
|
||||
|
||||
/* 1 means that the WM is metacity (broken as hell) */
|
||||
@ -410,13 +408,7 @@ int vo_init(struct vo *vo)
|
||||
|
||||
XSetErrorHandler(x11_errorhandler);
|
||||
|
||||
#if 0
|
||||
if (!mDisplayName)
|
||||
if (!(mDisplayName = getenv("DISPLAY")))
|
||||
mDisplayName = strdup(":0.0");
|
||||
#else
|
||||
dispName = XDisplayName(mDisplayName);
|
||||
#endif
|
||||
dispName = XDisplayName(NULL);
|
||||
|
||||
mp_msg(MSGT_VO, MSGL_V, "X11 opening display: %s\n", dispName);
|
||||
|
||||
|
@ -115,8 +115,6 @@ extern int metacity_hack;
|
||||
|
||||
extern char** vo_fstype_list;
|
||||
|
||||
extern char *mDisplayName;
|
||||
|
||||
struct vo_x11_state *vo_x11_init_state(void);
|
||||
int vo_init(struct vo *vo);
|
||||
void vo_uninit(struct vo_x11_state *x11);
|
||||
|
Loading…
Reference in New Issue
Block a user