Closed phil294 closed 1 year ago
Thanks for this patch! Patches like this are wonderful examples of how a tiny code change can represent days, weeks, or months of research and experiments ;)
I'm curious and confused why this fixed anything and why XGetWindowProperty is storing NULL for the prop pointer while still setting nitems above zero? That said, I trust your report that this improves things and am happy to merge it.
Hi!
I've been using
libxdo.so
for almost a year now as a static dependency of ahk_x11, using these bindings from @woodruffw in Crystal language. It works great!However, there's one spot that repeatedly leads to crashes. Here's a sample stack trace:
I can't tell for sure why this is happening and what causes it, but I think it is related to windows disappearing while the search is running when a
desktop
search argument is specified. I can reliably reproduce the error, but the setup is pretty complicated and hard to track down.While I have disabled Crystal's GC, it is still possible that this memory error is specific to the language. But still, adding this small
NULL
check fixes it for good. So I'd be glad if you could merge it, so I don't have to build my local fork anymore.Thanks!