How exactly is the Xorg MIT-COOKIE being sent by the application to the server - does Xlib do that?

2018-10-16 Thread Veek M
I wanted to feed my cookie to user goof via .Xauthority so I created a named pipe to do it. It works BUT very flakily. I found that I need to write the cookie numerous times till the application (hexchat/firefox) loads completely and then kill the feed-cookie program. 1. Why do I need to feed the

Re: How exactly is the Xorg MIT-COOKIE being sent by the application to the server - does Xlib do that?

2018-10-16 Thread Alan Coopersmith
On 10/16/18 05:54 PM, Veek M wrote: I wanted to feed my cookie to user goof via .Xauthority so I created a named pipe to do it. It works BUT very flakily. I found that I need to write the cookie numerous times till the application (hexchat/firefox) loads completely and then kill the feed-cookie p

XDrawPoint(s) etc MT safe?

2018-10-16 Thread Dennis Clarke
Dear Xorg : Something I had not thought of came up today. Could multiple threads call XDrawPoint() and then XFlush() ? Suppose sixteen threads are dispatched to do some foo and each of them utters some XDrawPoint() calls and then XFlush()? Is that remotely thread safe? Dennis

Re: XDrawPoint(s) etc MT safe?

2018-10-16 Thread Dennis Clarke
On 10/16/2018 09:58 PM, Dennis Clarke wrote: Dear Xorg :     Something I had not thought of came up today. Could multiple threads call XDrawPoint() and then XFlush() ?  Suppose sixteen threads are dispatched to do some foo and each of them utters some XDrawPoint() calls and then XFlush()?  Is