From ebd5bbd241f2b88b99a84fb899d3802e7c9b989d Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 16 May 2014 00:47:13 +0200 Subject: x11: replace--[x11-]fstype option with --x11-netwm Simplifies the code a lot. You can still use --x11-netwm=no to disable NetWM for whatever reasons. --- options/options.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'options/options.c') diff --git a/options/options.c b/options/options.c index d3a10457a8..1e17854dba 100644 --- a/options/options.c +++ b/options/options.c @@ -509,7 +509,7 @@ const m_option_t mp_opts[] = { OPT_INT64("wid", vo.WinID, CONF_GLOBAL), #if HAVE_X11 - OPT_STRINGLIST("x11-fstype", vo.fstype_list, 0), + OPT_FLAG("x11-netwm", vo.x11_netwm, 0), #endif OPT_STRING("heartbeat-cmd", heartbeat_cmd, 0), OPT_FLOAT("heartbeat-interval", heartbeat_interval, CONF_MIN, 0), @@ -663,6 +663,7 @@ const struct MPOpts mp_default_opts = { .keepaspect = 1, .border = 1, .WinID = -1, + .x11_netwm = 1, }, .wintitle = "mpv - ${media-title}", .heartbeat_interval = 30.0, -- cgit v1.2.3