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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index c77f374ed1..b5ff806532 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -1494,13 +1494,10 @@ static void vo_x11_fullscreen(struct vo *vo)
vo_x11_decoration(vo, opts->border && !x11->fs);
vo_x11_sizehint(vo, x, y, w, h, true);
- vo_x11_setlayer(vo, x11->window, x11->fs);
XMoveResizeWindow(x11->display, x11->window, x, y, w, h);
- /* some WMs lose ontop after fullscreen */
- if (!x11->fs && opts->ontop)
- vo_x11_setlayer(vo, x11->window, opts->ontop);
+ vo_x11_setlayer(vo, x11->window, x11->fs || opts->ontop);
XRaiseWindow(x11->display, x11->window);
XFlush(x11->display);