From 516e7d19da137e7b5b8d19c6f0e093823ecdb3a4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 18 Nov 2015 21:37:38 +0100 Subject: x11: request bypassing compositor Maybe this is a good idea. Also add an option to disable it again, for the sake of testing. Fixes #2502. --- video/out/x11_common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'video') diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 0fd5db0ca3..95308b9559 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1385,6 +1385,12 @@ static void vo_x11_create_window(struct vo *vo, XVisualInfo *vis, } if (!x11->parent) { + if (vo->opts->x11_bypass_compositor) { + long v = 1; // request disabling compositor + XChangeProperty(x11->display, x11->window, + XA(x11,_NET_WM_BYPASS_COMPOSITOR), XA_CARDINAL, 32, + PropModeReplace, (unsigned char *)&v, 1); + } vo_x11_set_wm_icon(x11); vo_x11_update_window_title(vo); vo_x11_dnd_init_window(vo); -- cgit v1.2.3