# HG changeset patch # User iive # Date 1306711735 0 # Node ID 5b1120ddd033d81ee11e28ea15681ce4a18d1d26 # Parent 3c93e23b80932223ac2c168569ac903759c661fb Create empty vo_gc graphic context instead of one with undefined foreground color. The code that uses vo_gc already employs XSetForeground()/XSetBackground() to change the context accordingly. diff -r 3c93e23b8093 -r 5b1120ddd033 libvo/x11_common.c --- a/libvo/x11_common.c Sun May 29 23:05:57 2011 +0000 +++ b/libvo/x11_common.c Sun May 29 23:28:55 2011 +0000 @@ -1075,7 +1075,6 @@ Colormap col_map, const char *classname, const char *title) { - XGCValues xgcv; if (WinID >= 0) { vo_fs = flags & VOFLAG_FULLSCREEN; vo_window = WinID ? (Window)WinID : mRootWin; @@ -1157,7 +1156,8 @@ final: if (vo_gc != None) XFreeGC(mDisplay, vo_gc); - vo_gc = XCreateGC(mDisplay, vo_window, GCForeground, &xgcv); + vo_gc = XCreateGC(mDisplay, vo_window, 0, NULL); + XSync(mDisplay, False); vo_mouse_autohide = 1; }