Fix ontop for some WMs that lose ontop state after fullscreen event.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14245 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
al 2004-12-27 11:09:49 +00:00
parent 8c7855e1b4
commit 00f99a82a8
1 changed files with 4 additions and 2 deletions

View File

@ -1484,11 +1484,13 @@ void vo_x11_fullscreen(void)
vo_x11_sizehint(x, y, w, h, 0);
vo_x11_setlayer(mDisplay, vo_window, vo_fs);
if ((!(vo_fs)) & vo_ontop)
vo_x11_setlayer(mDisplay, vo_window, vo_ontop);
XMoveResizeWindow(mDisplay, vo_window, x, y, w, h);
}
/* some WMs lose ontop after fullscreeen */
if ((!(vo_fs)) & vo_ontop)
vo_x11_setlayer(mDisplay, vo_window, vo_ontop);
#ifdef HAVE_XINERAMA
vo_x11_xinerama_move(mDisplay, vo_window);
#endif