From 54fd93856a3b34c92d0dd9e8cc972b57a92d1a5e Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 4 Oct 2014 15:03:02 +0200 Subject: 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. --- video/out/x11_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'video/out/x11_common.c') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 140069e289..aed54f9010 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -308,7 +308,7 @@ static int vo_wm_detect(struct vo *vo) &nitems); if (args) { MP_VERBOSE(x11, "Detected wm supports NetWM.\n"); - if (vo->opts->x11_netwm) { + if (vo->opts->x11_netwm >= 0) { for (i = 0; i < nitems; i++) wm |= net_wm_support_state_test(vo->x11, args[i]); } else { @@ -319,6 +319,10 @@ static int vo_wm_detect(struct vo *vo) if (wm == 0) MP_VERBOSE(x11, "Unknown wm type...\n"); + if (vo->opts->x11_netwm > 0 && !(wm & vo_wm_FULLSCREEN)) { + MP_WARN(x11, "Forcing NetWM FULLSCREEN support.\n"); + wm |= vo_wm_FULLSCREEN; + } return wm; } -- cgit v1.2.3