diff options
author | wm4 <wm4@nowhere> | 2015-11-18 21:37:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-18 21:48:29 +0100 |
commit | 516e7d19da137e7b5b8d19c6f0e093823ecdb3a4 (patch) | |
tree | 6bbaf5618bd995471f5a68bc108316d8ed234cd5 /video/out/x11_common.c | |
parent | 58caf577f1949655e2eeaf3d7c565eedb6ee2805 (diff) | |
download | mpv-516e7d19da137e7b5b8d19c6f0e093823ecdb3a4.tar.bz2 mpv-516e7d19da137e7b5b8d19c6f0e093823ecdb3a4.tar.xz |
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.
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 6 |
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); |