[Xquartz-dev] XQuartz 2.5.0_rc1

Brandon Allbery allbery at kf8nh.com
Wed Mar 17 19:31:07 PDT 2010


On Mar 17, 2010, at 19:56 , Jeremy Huddleston wrote:
> Uhm... are you kidding?  This support was added quite some time  
> ago.  It was buggy for a while, but it has been working for quite  
> some time.  This is the whole reason for the XP_EVENT_DISPLAY_CHANGED

I specifically recall asking about this and getting an "I don't see  
the point" answer back from you.  Now I'm wondering what you thought I  
was talking about.

>> it would be nice if monitor changes were passed on as XRandR  
>> extension events, but right now the X session isn't informed of any  
>> changes and you need to restart XQuartz to get it to see the change.
>
> That's not completely true.  We don't support RandR, but clients are  
> free to query the screen at any time.

...guess that answers *that* question.

Modern X11 clients expect to receive XRandR events for this.   
Otherwise you need to register interest in root window Reconfigure  
events, and (aside from that only being made available after XRandR  
was implemented, due to fear that changing root window sizes would  
confuse existing programs) that is only partially useful for the case  
of programs wanting to know the actual screen configuration (which I  
assume XQuartz isn't doing, but it's what people expect to work with;  
root window sizes are disrecommended on other platforms) so the vast  
majority of programs that care use XRandR.

In short, programs that want to support OSX are apparently expected to  
use a mechanism that on other platforms one is told to use XRandR  
for.  This seems unfortunate at best.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macosforge.org/pipermail/xquartz-dev/attachments/20100317/58581a1e/attachment.bin>


More information about the Xquartz-dev mailing list