diff options
-rw-r--r-- | libvo/x11_common.c | 3 |
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, |