<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><span style="font-family: Arial; font-size: 13px;"> Hello, guys!<br> I‘m now trying to use XCB instead of XLib of my program backend. And I'm trying to translate these few lines:<br><br> XVisualInfo vinfo;<br> XSetWindowAttributes attr;
<br> screen = DefaultScreen(display);
<br> XMatchVisualInfo(display, screen, 32, TrueColor, &vinfo);
//create a transparent window<br> attr.colormap = XCreateColormap(display, rootwin, vinfo.visual, AllocNone);
<br> attr.override_redirect = 1;
// ... and without the title-bar<br><br>I found a tutor on this <a href="http://xcb.freedesktop.org/xlibtoxcbtranslationguide/" target="_blank">web-page</a>, but while I was trying to get the xcb_visualtype_t structure, function screen_of_display() didn't seem existed. I tried xcb_setup_roots_iterator() instead, and the result was, I got a NULL xcb_visualtype_t *...<br><br>-- screen = xcb_setup_roots_iterator(xcb_get_setup(c)).data;<br>=> screen = screen_of_display (c, screen_nbr);<br><br>So is there anyway I can create a transparent, no title-bar window and filling the window with cairo?<br>Thanks!<br><br>-----<br>happymaze<br></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"><span title="neteasefooter"><span id="netease_mail_footer"><a href="#" target="_blank"></a></span></span>
</span></span>