[MPlayer-cvslog] r29614 - trunk/libvo/x11_common.c

reimar subversion at mplayerhq.hu
Tue Sep 1 18:39:46 CEST 2009


Author: reimar
Date: Tue Sep  1 18:39:46 2009
New Revision: 29614

Log:
Do not do a unmap/map cycle on Windows given with -wid, with some window
managers this has the ugly side-effect of moving the window.
Instead call XInstallColormap to ensure the Colormap is installed.

Modified:
   trunk/libvo/x11_common.c

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Tue Sep  1 17:52:13 2009	(r29613)
+++ trunk/libvo/x11_common.c	Tue Sep  1 18:39:46 2009	(r29614)
@@ -1092,9 +1092,8 @@ void vo_x11_create_vo_window(XVisualInfo
       unsigned long xswamask = CWColormap;
       XSetWindowAttributes xswa;
       xswa.colormap = col_map;
-      XUnmapWindow(mDisplay, vo_window);
       XChangeWindowAttributes(mDisplay, vo_window, xswamask, &xswa);
-      XMapWindow(mDisplay, vo_window);
+      XInstallColormap(mDisplay, col_map);
     }
     if (WinID) vo_x11_update_geometry();
     vo_x11_selectinput_witherr(mDisplay, vo_window,


More information about the MPlayer-cvslog mailing list