mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
x11: fix --ontop
Apply it after mapping.
This commit is contained in:
parent
6704e39fcb
commit
3ffabe26af
@ -1040,9 +1040,6 @@ void vo_x11_config_vo_window(struct vo *vo, XVisualInfo *vis, int x, int y,
|
|||||||
if (flags & VOFLAG_HIDDEN)
|
if (flags & VOFLAG_HIDDEN)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (opts->ontop)
|
|
||||||
vo_x11_setlayer(vo, x11->window, opts->ontop);
|
|
||||||
|
|
||||||
bool reset_size = !(x11->old_dwidth == width && x11->old_dheight == height);
|
bool reset_size = !(x11->old_dwidth == width && x11->old_dheight == height);
|
||||||
if (x11->window_hidden) {
|
if (x11->window_hidden) {
|
||||||
x11->nofs_x = x;
|
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);
|
vo_x11_fullscreen(vo);
|
||||||
|
|
||||||
XSync(x11->display, False);
|
XSync(x11->display, False);
|
||||||
|
Loading…
Reference in New Issue
Block a user