1
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 03:06:28 +01:00

Remove --rootwin option and rootwin property

You can just use --wid=0 if you really want this.

This only worked/works for X11, and even then it might interact badly
with most desktop environments. All the option did was setting --wid to
0, and the property did nothing.
This commit is contained in:
wm4 2013-02-24 17:00:52 +01:00
parent 90efe7cf48
commit af54ff826b
8 changed files with 0 additions and 24 deletions

View File

@ -297,7 +297,6 @@ colormatrix x see ``--colormatrix``
colormatrix-input-range x see ``--colormatrix-input-range``
colormatrix-output-range x see ``--colormatrix-output-range``
ontop x see ``--ontop``
rootwin x see ``--rootwin``
border x see ``--border``
framedrop x see ``--framedrop``
gamma x see ``--gamma``

View File

@ -1706,11 +1706,6 @@
(udp:// only)
Allows a socket to be reused by other processes as soon as it is closed.
--rootwin
Play movie in the root window (desktop background). Desktop background
images may cover the movie window, though. May not work with all video
output drivers.
--saturation=<-100-100>
Adjust the saturation of the video signal (default: 0). You can get
grayscale output with this option. Not supported by all video output

View File

@ -529,7 +529,6 @@ const m_option_t mplayer_opts[]={
OPT_STRINGLIST("ao", audio_driver_list, 0),
OPT_FLAG("fixed-vo", fixed_vo, CONF_GLOBAL),
OPT_FLAG("ontop", vo_ontop, 0),
{"rootwin", &vo_rootwin, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"border", &vo_border, CONF_TYPE_FLAG, 0, 0, 1, NULL},
OPT_STRING("mixer", mixer_device, 0),

View File

@ -1025,14 +1025,6 @@ static int mp_property_ontop(m_option_t *prop, int action, void *arg,
&mpctx->opts.vo_ontop, mpctx);
}
/// Display in the root window (RW)
static int mp_property_rootwin(m_option_t *prop, int action, void *arg,
MPContext *mpctx)
{
return mp_property_vo_flag(prop, action, arg, VOCTRL_ROOTWIN,
&vo_rootwin, mpctx);
}
/// Show window borders (RW)
static int mp_property_border(m_option_t *prop, int action, void *arg,
MPContext *mpctx)
@ -1388,7 +1380,6 @@ static const m_option_t mp_properties[] = {
M_OPTION_PROPERTY_CUSTOM("colormatrix-output-range",
mp_property_colormatrix_output_range),
M_OPTION_PROPERTY_CUSTOM("ontop", mp_property_ontop),
M_OPTION_PROPERTY_CUSTOM("rootwin", mp_property_rootwin),
M_OPTION_PROPERTY_CUSTOM("border", mp_property_border),
M_OPTION_PROPERTY_CUSTOM("framedrop", mp_property_framedrop),
M_OPTION_PROPERTY_CUSTOM_("gamma", mp_property_gamma,
@ -1504,7 +1495,6 @@ static struct property_osd_display {
// video
{ "panscan", _("Panscan"), .osd_progbar = OSD_PANSCAN },
{ "ontop", _("Stay on top") },
{ "rootwin", _("Rootwin") },
{ "border", _("Border") },
{ "framedrop", _("Framedrop") },
{ "deinterlace", _("Deinterlace") },

View File

@ -223,7 +223,6 @@ static const struct legacy_cmd legacy_cmds[] = {
{"vo_fullscreen", "no-osd cycle fullscreen"},
{"panscan", "add panscan"},
{"vo_ontop", "cycle ontop"},
{"vo_rootwin", "cycle rootwin"},
{"vo_border", "cycle border"},
{"frame_drop", "cycle framedrop"},
{"gamma", "add gamma"},

View File

@ -57,7 +57,6 @@ int vo_fsmode = 0;
float vo_panscan = 0.0f;
int vo_refresh_rate=0;
int vo_keepaspect=1;
int vo_rootwin=0;
int vo_border=1;
int64_t WinID = -1;

View File

@ -60,7 +60,6 @@ enum mp_voctrl {
VOCTRL_REDRAW_FRAME,
VOCTRL_ONTOP,
VOCTRL_ROOTWIN,
VOCTRL_BORDER,
VOCTRL_SET_DEINTERLACE,
@ -316,7 +315,6 @@ extern int vo_fsmode;
extern float vo_panscan;
extern int vo_refresh_rate;
extern int vo_keepaspect;
extern int vo_rootwin;
extern int vo_border;
extern int vo_nomouse_input;

View File

@ -433,9 +433,6 @@ int vo_x11_init(struct vo *vo)
};
vo->x11 = x11;
if (vo_rootwin)
WinID = 0; // use root window
XSetErrorHandler(x11_errorhandler);
dispName = XDisplayName(NULL);