Re: headerless window, undecoration

Peter Harris <[email protected]> Wed, 16 Apr 2025 13:38:27 -0400
Newsgroups gmane.comp.freedesktop.xcb
Message-ID <[email protected]>
On 2025-04-16 1:00 p.m., Steven J Abner wrote:
> Managed to create undecorated window. Seems to imply can only be done by 
> window managers that support Motif.

They all (well, all the ones that support undecorated windows, which is 
basically all of them) support this Motif property.

> The code that did it for me:
> 
> typedef struct Hints {
>   unsigned long flags;

All the fields should be uint32_t. "long" is not always 32 bits in size.

The StackOverflow article probably uses "long" because Xlib, unlike xcb, 
uses "long" in its XChangeProperty API and translates to 32-bits internally.

Peter Harris