Closed jraby closed 1 year ago
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
On X11, calling
GetTitle
a couple times would crash the program withMaximum number of clients reached
+ segfault.This plugs the leaks that I was hitting but there might be more:
I'm not familiar with X11 code, but is it customary to call
XOpenDisplay
+XCloseDisplay
multiple times? I get the feeling that it would be more efficient and less error prone to keep the display open through the lifetime of the application instead of the open/close dance that is currently done. Or at least it seems strange that open/close is called multiple times when callingGetTitle
.The current shape of the code might not lend itself to this pattern very well since the same functions are called for all OSes, carrying a fd throughout might not be straightforward.
This might fix #168