x11: always raise layer in fullscreen mode without NetWM

This commit is contained in:
wm4 2014-05-17 01:53:56 +02:00
parent faeaa6c358
commit 4807f8bdd2
1 changed files with 1 additions and 4 deletions

View File

@ -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);