x11: stupid workaround for XMonad

--x11-netwm=yes now forces NetWM fullscreen, while --x11-netwm=auto
(detect whether NetWM fullsctreen support is available) is the old
behavior and still the default.

See #888.
This commit is contained in:
wm4
2014-10-04 15:03:02 +02:00
parent f679c5de1b
commit 54fd93856a
3 changed files with 21 additions and 7 deletions

View File

@@ -431,7 +431,8 @@ const m_option_t mp_opts[] = {
OPT_INT64("wid", vo.WinID, CONF_GLOBAL),
#if HAVE_X11
OPT_FLAG("x11-netwm", vo.x11_netwm, 0),
OPT_CHOICE("x11-netwm", vo.x11_netwm, 0,
({"auto", 0}, {"no", -1}, {"yes", 1})),
#endif
OPT_STRING("heartbeat-cmd", heartbeat_cmd, 0),
OPT_FLOAT("heartbeat-interval", heartbeat_interval, CONF_MIN, 0),
@@ -573,7 +574,6 @@ const struct MPOpts mp_default_opts = {
.keepaspect = 1,
.border = 1,
.WinID = -1,
.x11_netwm = 1,
},
.allow_win_drag = 1,
.wintitle = "mpv - ${media-title}",