How does libXt do resource type comparison?

2022-05-27 Thread Lucas de Sena
Hi, I'm using libXt to write some widgets, and I'm using Xt's resource management system to convert string X resources to XftFont objects, by setting converters and destructor functions with the XtSetTypeConverter(3) routine. It seems that Xt can cache converted objects so it does not have to do

I only get VisibilityNotify events at window mapping

2022-09-17 Thread Lucas de Sena
Hi, I'm trying to get VisibilityNotify events to check whether a given window is obscured. However, I only get VisibilityNotify events after mapping the window. Obscuring it with any other window (be it a sibling or not) does not trigger a VisibilityNotify event, nor when I unobscure it. And whe

Create window from arbitrary pixmap as background

2024-07-20 Thread Lucas de Sena
iconifying window managers deal with clients providing icon pixmap and mask on XWMHints(3). But as far as I could understand, fvwm and twm ignores pixmaps with non-default depths; and windowmaker creates an XImage from the pixmap and then creates a default-depth pixmap back from it. Is the latter approach the most correct (or only) one? -- Lucas de Sena

Re: Create window from arbitrary pixmap as background

2024-07-20 Thread Lucas de Sena
which visual class to try). > On Sat, 20 Jul 2024 14:58:58 -0300 Lucas de Sena said: > > I checked how a few iconifying window managers deal with clients > > providing icon pixmap and mask on XWMHints(3). But as far as I could > > understand, fvwm and twm ignores pixmaps

Re: Create window from arbitrary pixmap as background

2024-07-20 Thread Lucas de Sena
On 2024-07-20, Carsten Haitzler wrote: > well this is a different thing - that pxiamp is provided by some other client > so you have fairly little choice. it's a bit primitive TBH especially as you > now don't have alpha - this is why the freeddesktop extended hints provide an > icon RGBA data prop

Re: X11 client fails keeping ownership of CLIPBOARD

2025-03-30 Thread Lucas de Sena
LIPBOARD selection. Or you can edit the code to use the PRIMARY selection instead, which clipboard managers (usually) do not mess with. -- Lucas de Sena.

Re: X11 client fails keeping ownership of CLIPBOARD

2025-04-01 Thread Lucas de Sena
ibX11/libX11/libX11.html#Client_Communication_Events [2]: https://www.x.org/releases/current/doc/xorg-docs/icccm/icccm.html#Peer_to_Peer_Communication_by_Means_of_Selections [3]: https://www.freedesktop.org/wiki/Specifications/ClipboardsWiki/ [4]: http://www.pps.jussieu.fr/~jch/software/UTF8_STRING -- Lucas de Sena