summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r--video/out/x11_common.c6
1 files changed, 6 insertions, 0 deletions
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);