X11_Util: Don't specify a background pixel

This causes flickering when resizing the window, which looks horrid
and we shouldn't do it.
This commit is contained in:
Jasper St. Pierre 2014-08-09 10:54:42 -04:00
parent 2d974b6086
commit e39543b963
1 changed files with 1 additions and 3 deletions

View File

@ -21,14 +21,12 @@ Window cX11Window::CreateXWindow(Window parent, XVisualInfo *vi)
// Setup window attributes // Setup window attributes
attr.colormap = colormap; attr.colormap = colormap;
attr.background_pixel = BlackPixel(dpy, 0);
attr.border_pixel = 0;
// Create the window // Create the window
win = XCreateWindow(dpy, parent, win = XCreateWindow(dpy, parent,
0, 0, 1, 1, 0, 0, 0, 1, 1, 0,
vi->depth, InputOutput, vi->visual, vi->depth, InputOutput, vi->visual,
CWBorderPixel | CWBackPixel | CWColormap, &attr); CWColormap, &attr);
XSelectInput(dpy, parent, StructureNotifyMask); XSelectInput(dpy, parent, StructureNotifyMask);
XMapWindow(dpy, win); XMapWindow(dpy, win);
XSync(dpy, True); XSync(dpy, True);