diff options
author | wm4 <wm4@nowhere> | 2013-08-14 00:34:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-08-14 00:36:33 +0200 |
commit | 3ffabe26af261af6b806024ac6eae8fd72fdfcaa (patch) | |
tree | 23341c37dabf9f39ef4825f4b819aafe0c968d8b /video/out | |
parent | 6704e39fcb73db144f14925be8ca34f35d401e90 (diff) | |
download | mpv-3ffabe26af261af6b806024ac6eae8fd72fdfcaa.tar.bz2 mpv-3ffabe26af261af6b806024ac6eae8fd72fdfcaa.tar.xz |
x11: fix --ontop
Apply it after mapping.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/x11_common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c index 5b1bb9a7aa..5ae71eda70 100644 --- a/video/out/x11_common.c +++ b/video/out/x11_common.c @@ -1040,9 +1040,6 @@ void vo_x11_config_vo_window(struct vo *vo, XVisualInfo *vis, int x, int y, if (flags & VOFLAG_HIDDEN) return; - if (opts->ontop) - vo_x11_setlayer(vo, x11->window, opts->ontop); - bool reset_size = !(x11->old_dwidth == width && x11->old_dheight == height); if (x11->window_hidden) { x11->nofs_x = x; @@ -1075,6 +1072,9 @@ void vo_x11_config_vo_window(struct vo *vo, XVisualInfo *vis, int x, int y, } } + if (opts->ontop) + vo_x11_setlayer(vo, x11->window, opts->ontop); + vo_x11_fullscreen(vo); XSync(x11->display, False); |