diff options
author | wm4 <wm4@nowhere> | 2014-10-07 23:37:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-07 23:37:47 +0200 |
commit | f47269a074333272c82e30104818771c4aab1a46 (patch) | |
tree | baa88cfd2e51dc65dbc253d029bd53603084ffb8 /video/out/x11_common.c | |
parent | ac54f104909fcf92f04529834d374e9404c513f2 (diff) | |
download | mpv-f47269a074333272c82e30104818771c4aab1a46.tar.bz2 mpv-f47269a074333272c82e30104818771c4aab1a46.tar.xz |
x11: disable various features when embedding the window
Diffstat (limited to 'video/out/x11_common.c')
-rw-r--r-- | video/out/x11_common.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index b094364a6e..53b18ec5bb 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1222,9 +1222,11 @@ static void vo_x11_create_window(struct vo *vo, XVisualInfo *vis, NULL); } - vo_x11_set_wm_icon(x11); - vo_x11_update_window_title(vo); - vo_x11_dnd_init_window(vo); + if (vo->opts->WinID >= 0) { + vo_x11_set_wm_icon(x11); + vo_x11_update_window_title(vo); + vo_x11_dnd_init_window(vo); + } x11->atom_frame_exts = XA(x11, _NET_FRAME_EXTENTS); } |