From e8d52896236f9fceaf8cc808ba3ba4a657f86b39 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 1 Sep 2009 16:39:46 +0000 Subject: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29614 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/x11_common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/x11_common.c b/libvo/x11_common.c index 7492fc9fdd..485db9931c 100644 --- a/libvo/x11_common.c +++ b/libvo/x11_common.c @@ -1092,9 +1092,8 @@ void vo_x11_create_vo_window(XVisualInfo *vis, int x, int y, 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, -- cgit v1.2.3