# HG changeset patch # User reimar # Date 1251823186 0 # Node ID 4890363e713a64287d5781981a68dc4dff341b2c # Parent 94524110f64518744d6a1d473c660fcac89646e8 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. diff -r 94524110f645 -r 4890363e713a libvo/x11_common.c --- a/libvo/x11_common.c Tue Sep 01 15:52:13 2009 +0000 +++ b/libvo/x11_common.c Tue Sep 01 16:39:46 2009 +0000 @@ -1092,9 +1092,8 @@ 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,