summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-27 11:09:49 +0000
committeral <al@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-12-27 11:09:49 +0000
commit00f99a82a8f57573e3e6982cf9d014c9b9d8a68b (patch)
treebc6388a3512e205f1b9e1d8abe5ad7bc89f94d88 /libvo
parent8c7855e1b4efeab4e83ca7d87f6854149eb5cc2e (diff)
downloadmpv-00f99a82a8f57573e3e6982cf9d014c9b9d8a68b.tar.bz2
mpv-00f99a82a8f57573e3e6982cf9d014c9b9d8a68b.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index ebbbe11d7d..c42f19f364 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -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