diff libvo/x11_common.c @ 14244:9b03ad0254ae

Fix ontop for some WMs that lose ontop state after fullscreen event.
author al
date Mon, 27 Dec 2004 11:09:49 +0000
parents f8670fdf6ab1
children 408bcfa575bf
line wrap: on
line diff
--- a/libvo/x11_common.c	Sun Dec 26 11:58:07 2004 +0000
+++ b/libvo/x11_common.c	Mon Dec 27 11:09:49 2004 +0000
@@ -1484,11 +1484,13 @@
         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