Re: headerless window, undecoration

Peter Harris <[email protected]> Wed, 16 Apr 2025 14:20:16 -0400
Newsgroups gmane.comp.freedesktop.xcb
Message-ID <[email protected]>
------=_Part_210490_2107767152.1744827616847
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

r0->atom is used for both property and type.

(I really hope you're caching the atom value and not looking it up afresh e=
ach time, and that the cache was omitted for the sake of a shorter example)=
=C2=A0

Peter Harris





 ---- On Wed, 16 Apr 2025 14:11:56 -0400  [email protected]  wrote ----

On Wed, Apr 16 2025 at 05:38:27 PM +0000, Peter Harris <[email protected]>=20

wrote:

> All the fields should be uint32_t. "long" is not always 32 bits in=20

> size.



Thank you, I thought, but didn't know. Assuming those members and=20

uint32_t known,

should I use r0->atom or XCB_ATOM_CARDINAL once I alter the structure?=20

for type.



Steve
------=_Part_210490_2107767152.1744827616847
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>=
<meta content=3D"text/html;charset=3DUTF-8" http-equiv=3D"Content-Type"></h=
ead><body ><div dir=3D'auto' style=3D'font-size:10pt;font-family:Verdana,Ar=
ial,Helvetica,sans-serif;'><div id=3D"message" dir=3D"auto"><div dir=3D"aut=
o"><font size=3D"2">r0-&gt;atom is used for both property and type.</font><=
br id=3D"br3"><br>(I really hope you're caching the atom value and not look=
ing it up afresh each time, and that the cache was omitted for the sake of =
a shorter example)&nbsp;</div><div dir=3D"auto"><br id=3D"br3">Peter Harris=
</div></div><div id=3D"signature" dir=3D"auto"></div><div id=3D"content" di=
r=3D"auto"><br><div class=3D"zmail_extra_hr" style=3D"border-top-width: 1px=
; border-top-style: solid; border-top-color: rgb(204, 204, 204); height: 0p=
x; margin-top: 10px; margin-bottom: 10px; line-height: 0px;"></div><br> ---=
- On Wed, 16 Apr 2025 14:11:56 -0400 <b> [email protected] </b> wrote ---=
-<br><br><blockquote style=3D"border: 0px; padding: 0px; margin: 0px;"><div=
>On Wed, Apr 16 2025 at 05:38:27 PM +0000, Peter Harris &lt;[email protected]&g=
t;=20
<br>wrote:
<br>&gt; All the fields should be uint32_t. "long" is not always 32 bits in=
=20
<br>&gt; size.
<br>
<br>Thank you, I thought, but didn't know. Assuming those members and=20
<br>uint32_t known,
<br>should I use r0-&gt;atom or XCB_ATOM_CARDINAL once I alter the structur=
e?=20
<br>for type.
<br>
<br>Steve
<br>
<br>
<br></div></blockquote></div></div><br></body></html>
------=_Part_210490_2107767152.1744827616847--