On Wed, 28 Mar 2018 22:35:36 +0200
RenĂ© J.V. Bertin <[email protected]> wrote:

> >1.  What is the "bring to front" API call that XQuartz makes?
> >(Because we don't think the OS is actively selecting XQuartz to be
> >brought to the front).
> 
> Why would you think that? According to me the most simple explanation
> is that launchd intercepts the connection attempt to the socket 

My problem with that explanation is that I see no reason at all to
think Chrome ever connects to that socket.  Why would it?  

> I don't know of any feature to make XQuarz bring itself to the front
> in reaction to certain events

Every windowing API has a function to move the application to the
front.  Apple's seems to be "makeKeyAndOrderFront" 
(https://developer.apple.com/documentation/appkit/nswindow/1419208-makekeyandorderfront).
I don't know enough about Apple GUI development to pursue it, but it
seems likely to me that XQuartz contains calls to such functions in
response to particular events.  Someone who understands the code could
isolate those calls and describe the events.  

My assertion is that Chrome is doing something perfectly ordinary, and
XQuartz is reacting inappropriately.  

I don't think Chome is aware of XQuartz's existence, much less it is
interacting with it (or launchd) in any way.  Also we know other
browers provoke the same behavior.  

> The only reason why this explanation doesn't appear to the one is
> that the issue apparently continues after unloading the launchd plist.

Hmm, that's not the only reason.  Another is that the behavior could
occur without any assistance from launchd.  All that is needed is for
Chrome (et alia) to send a message to "all windows".  It appears in
the XQuartz event loop, and XQuartz brings itself to the front.  

--jkl

P.S. It would aid others searching the archive if you would edit the
subject line in your replies to reflect the thread contents.  "X11-users
Digest" isn't very indicative of what the discussion is about.  :-)  
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription: 
https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to