summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-09-01 16:39:46 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-09-01 16:39:46 +0000
commite8d52896236f9fceaf8cc808ba3ba4a657f86b39 (patch)
tree331f253941961cc20b298fed3db8759a41c6bcab /libvo
parentd1ff4b7f906536be0e8f6c7cecbf117867a54992 (diff)
downloadmpv-e8d52896236f9fceaf8cc808ba3ba4a657f86b39.tar.bz2
mpv-e8d52896236f9fceaf8cc808ba3ba4a657f86b39.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/x11_common.c3
1 files changed, 1 insertions, 2 deletions
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,