<div dir="ltr"><div>The patches sound great, please send them on. I may not have time to merge them myself but I can at least get them into gitlab with some commentary for the next adventurous soul.</div><div><br></div><div>- ajax<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 20, 2023 at 3:27 AM <<a href="mailto:mouse@mojatatu.com">mouse@mojatatu.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I tried to send a HELP request to xorg-request but it disappeared<br>
without any trace as far as I can tell, so I'm not sure whether I can<br>
subscribe. If anyone sees this, _something_ got through, though.<br>
<br>
There's a bug I've seen in various X servers. I *think* they're all<br>
derived from X.org code, and I suspect this is moderately widespread;<br>
I've seen it on recent Ubuntu, recent RaspOS, and old NetBSD. I wrote<br>
a tiny test (ftp.rodents-montreal.org:/mouse/misc/cursor-bug.c - also<br>
available over HTTP as well, though I'm not sure what Content-Type:<br>
it'll be served as) and people on NetBSD's tech-x11 report it on recent<br>
NetBSD as well, on some, but only some, hardware.<br>
<br>
The bug is that creating a pixmap cursor (a CreateCursor request) with<br>
a mask of None typically extends the source pixmap to the right with<br>
server-dependent data (typically background pixels) to a width such as<br>
16 or 32 pixels. See the comment header on the test program for more.<br>
<br>
I wrote patches to fix this for two server versions (the ones that<br>
shipped with NetBSD 4.0.1/i386 and 5.2/amd64). I can certainly send<br>
those patches if anyone wants them; they are old, but if that part of<br>
ProcCreateCursor is unchanged since then they might be a useful<br>
starting point (though I do have low-to-negative confidence I got the<br>
code right for other architectures).<br>
<br>
/~\ The ASCII Mouse<br>
\ / Ribbon Campaign<br>
X Against HTML<br>
/ \ Email! <a href="mailto:mouse@mojatatu.com" target="_blank">mouse@mojatatu.com</a><br>
<br>
</blockquote></div>