+ XVisualInfo *vi=glXGetVisualFromFBConfig(display, config[0]);
+ Handle root=RootWindow(display, vi->screen);
+
+ Colormap cmap=XCreateColormap(display, root, vi->visual, AllocNone);
+ XSetWindowAttributes attr;
+ attr.colormap=cmap;
+
+ Handle wnd=XCreateWindow(display, root, 0, 0, options.width, options.height, 0, vi->depth, InputOutput, vi->visual, CWColormap, &attr);
+ set_window(wnd);
+
+ glx_wnd=glXCreateWindow(display, config[0], wnd, 0);
+
+ glXMakeContextCurrent(display, glx_wnd, glx_wnd, context);