changeset 29572:4890363e713a

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.
author reimar
date Tue, 01 Sep 2009 16:39:46 +0000
parents 94524110f645
children 2b14be337eaf
files libvo/x11_common.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,