<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you very much! I will ruminate more on this and read on error handling and events until I can write something intelligible about this.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Meanwhile I would like to point out that the struct I was talking about has the following members: major_opcode, pad0 (no idea what this is nor how it is used), length (length of the request?), and window (I kknow this is supposed to reference the window that
 is supposed to be unmapped).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://xcb.freedesktop.org/manual/structxcb__unmap__window__request__t.html" id="LPlnk811274">https://xcb.freedesktop.org/manual/structxcb__unmap__window__request__t.html</a></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
It also appears here <a href="https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Desktop-generic/LSB-Desktop-generic/libxcb-ddefs.html" id="LPlnk830047">https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Desktop-generic/LSB-Desktop-generic/libxcb-ddefs.html</a></div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>De:</b> Uli Schlachter <psychon@znc.in><br>
<b>Enviado:</b> quinta-feira, 11 de fevereiro de 2021 14:37<br>
<b>Para:</b> Lucas Augusto Valentim Dantas <lucasvalentim@outlook.com.br>; xcb@lists.freedesktop.org <xcb@lists.freedesktop.org><br>
<b>Assunto:</b> Re: [Xcb] [EXTERNAL] - Attempt at writing a tutorial</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi,<br>
<br>
checked vs unchecked requests are explained here (under the heading of<br>
the same name):<br>
<br>
<a href="https://www.systutorials.com/docs/linux/man/3-xcb-requests/">https://www.systutorials.com/docs/linux/man/3-xcb-requests/</a><br>
<br>
The short version is: This only makes a difference for X11 error<br>
handling. With unchecked requests, any errors show up as events in e.g.<br>
xcb_wait_for_event(). With checked requests, errors are provided when<br>
getting the reply (or calling xcb_check_request()).<br>
<br>
Cheers,<br>
Uli<br>
<br>
Am 11.02.21 um 18:28 schrieb Lucas Augusto Valentim Dantas:<br>
> I found those values by looking into the source code, probably libxcb's, since they are passed to the second argument of the function xcb_send_request(), as can be seen here (although the "sequence" argument is gone already):
<a href="https://xcb.freedesktop.org/ProtocolExtensionApi/#index3h2">https://xcb.freedesktop.org/ProtocolExtensionApi/#index3h2</a> but that page doesn't explain what they do.<br>
> My goal with this tutorial is to provide enough for the reader to understand the X documentation so he is able to "navigate" on his own, that is what I am trying to do myself.<br>
> ________________________________<br>
> De: Peter Harris <pharris@opentext.com><br>
> Enviado: quinta-feira, 11 de fevereiro de 2021 14:15<br>
> Para: Lucas <lucasvalentim@outlook.com.br>; xcb@lists.freedesktop.org <xcb@lists.freedesktop.org><br>
> Assunto: RE: [EXTERNAL] - [Xcb] Attempt at writing a tutorial<br>
> <br>
> On 2021-02-10 Lucas wrote:<br>
>> I am writing a XCB tutorial as an exercise, so far, this is what I<br>
>> have <a href="https://biteiro.ga/xcb.html">https://biteiro.ga/xcb.html</a><br>
>><br>
>> There are a few things I couldn't find details yet, such as what does<br>
>> the flags XCB_REQUEST_CHECKED, XCB_REQUEST_RAW,<br>
>> XCB_REQUEST_DISCARD_REPLY, and XCB_REQUEST_REPLY_FDS do?<br>
> <br>
> Those values are for internal use by libxcb (and/or xlib), and are not intended to be used by a normal user of libxcb.<br>
> <br>
> Who is your tutorial intended for? Showing the inner workings is more of a "deep documentation" thing than a "tutorial" thing.<br>
> <br>
>> Are there any<br>
>> explanations on the members of the struct xcb_unmap_window_request_t?<br>
> <br>
> libxcb is a thin wrapper around the X11 protocol. As such, the documentation for those fields can be found at:<br>
> <br>
> <a href="https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#request_format">
https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#request_format</a><br>
> <br>
> <a href="https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#requests:UnmapWindow">
https://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#requests:UnmapWindow</a><br>
> <br>
> Peter Harris<br>
> <br>
> <br>
> _______________________________________________<br>
> Xcb mailing list<br>
> Xcb@lists.freedesktop.org<br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/xcb">https://lists.freedesktop.org/mailman/listinfo/xcb</a><br>
> <br>
<br>
<br>
-- <br>
<alanc> I think someone had a Xprint version of glxgears at one point,<br>
    but benchmarking how many GL pages you can print per second<br>
    was deemed too silly to merge<br>
</div>
</span></font></div>
</body>
</html>