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:
parent
2d974b6086
commit
e39543b963
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue