[Xcb] Drawable is not displayed
Sam Varshavchik
mrsam at courier-mta.com
Wed Mar 11 12:33:01 UTC 2020
Junk Mail writes:
> « HTML content follows »
>
> I am trying to learn the XCB library. The following program does not even
> show the window. What am I doing wrong?
>
> xcb_drawable_t drawable = screen -> root;
This is the screen's root window. This is not your window.
> xcb_create_window(connection,
> XCB_COPY_FROM_PARENT,
> drawable,
This parent must be your window's handle.
Use xcb_generate_id to get a new xcb_window_t, for your drawable handle.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/xcb/attachments/20200311/ef0d484c/attachment.sig>
More information about the Xcb
mailing list